不要让昨天 占据你的今天 夏午晴天

夏午晴天

N! java

 1 import java.util.*;
 2 import java.math.*;
 3 
 4 public class Num2{
 5     public static void main(String args[]){
 6         BigInteger s;
 7         int n;
 8         Scanner cin = new Scanner(System.in);
 9         while(cin.hasNext()){
10             n = cin.nextInt();
11             s = BigInteger.ONE;
12             for(int i = 1; i <= n; i++){
13                 s = s.multiply(BigInteger.valueOf(i));
14             }
15             System.out.println(s);
16         }
17     }
18 }

 

posted on 2017-06-05 22:02  夏晴天  阅读(165)  评论(0编辑  收藏  举报

导航

Live2D