import javax.swing.JOptionPane;
public class java
{
public static void main(String argv[])
{
String S=JOptionPane.showInputDialog("請輸入一整數");
String F=" ";
int f1=Integer.parseInt(S);
int i;
for(i=1;i<=9;i++)
F+=f1+"*"+i+"="+f1*i+"";
JOptionPane.showMessageDialog(null,F,"result",JOptionPane.PLAIN_MESSAGE);
}
}
請先 登入 以發表留言。