fork download
  1. import java.util.Scanner;
  2. import java.math.BigInteger;
  3. class Main {
  4. public static void main(String[] args) {
  5. //System.out.println("Hello, World");
  6. int N,i,t;
  7. Scanner in = new Scanner(System.in);
  8. t = in.nextInt();
  9. while(t--!=0)
  10. {
  11. BigInteger fact = BigInteger.valueOf(1);
  12. N = in.nextInt();
  13. for(i=2;i<=N;i++)
  14. fact = fact.multiply(BigInteger.valueOf(i));
  15.  
  16. System.out.println(fact);
  17. }
  18. in.close();
  19. }
  20.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
100
compilation info
Main.java:19: error: reached end of file while parsing
  }
   ^
1 error
stdout
Standard output is empty