JAVA
Monday, October 31, 2005
10月31日lab1
package pan;
import javax.swing.JOptionPane;
public class pan1{
public static void main(String[] args)
{int x=1;
int n=1;
while(n>=0){
String a = JOptionPane.showInputDialog("打一個數字");
n = Integer.parseInt(a);
if (n>=0) x*=n;
}
System.out.println(x);
}
}
posted by GG at
8:26 PM
0
Comments:
Post a Comment
<< Home
Previous Posts
Fibonacci numbers.
Fibonacci numbers
最大最小值
Lab If-Else (2)
Project 2.05
Display 3.1
JAVA Display 2.6
java JOptionpane
display 1.7
codemate
About Me
Name:
GG
View my complete profile
0 Comments:
Post a Comment
<< Home