标签:adb 输入 sed col main static scan system exti
1 public static void main(String[] args) { 2 System.out.println("请输入一个要计算的数:"); 3 Scanner in = new Scanner(System.in); 4 int a = in.nextInt(); 5 int x = 1; 6 System.out.print(a+"!="); 7 for(int i = a;i > 0;i --){ 8 System.out.print(i); 9 System.out.print("*"); 10 x = x*i; 11 } 12 System.out.print("="+x); 13 }
标签:adb 输入 sed col main static scan system exti
原文地址:http://www.cnblogs.com/gaomanito/p/7530604.html