Re: [問題] c語言程式求助
※ 引述《saxontai (黑暗,點綴孤零零的星)》之銘言:
: AutoIt v3 ( http://www.autoitscript.com/autoit3/ )
: $input = InputBox("", "請輸入體重:", "")
: $weight = Number($input) / 0.454
: MsgBox(0, "", "你的體重是 " & $input & " 公斤," & String($weight) & " 磅。")
應觀眾要求~~來個java版的~~
import javax.swing.JOptionPane;
public class 我不會用C只好用JAVA {
public static void main(String[] argv) {
float kg = Float.parseFloat(JOptionPane.showInputDialog(null,
"你的體重多少公斤?"));
JOptionPane.showMessageDialog(null,
kg + " KG = " + (kg /0.454) + " lb");
}
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 211.74.9.2
推
10/14 00:26, , 1F
10/14 00:26, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文:
問題
1
5
完整討論串 (本文為第 25 之 70 篇):
問題
25
36
問題
2
2
問題
1
1
問題
1
3
問題
6
9
問題
0
2
問題
0
2
問題
2
6
問題
0
1