MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/factoflargenum.java:12–23  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

10
11class factoflargenum {
12 public static void main (String[] args) {
13 Scanner sc = new Scanner(System.in);
14 int t = sc.nextInt();
15 while(t-->0)
16 {
17 int n = sc.nextInt();
18 BigInteger bg = BigInteger.ONE;
19 for(int i=n;i>0;i--)
20 bg = bg.multiply(BigInteger.valueOf(i));
21 System.out.println(bg);
22 }
23 }
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected