MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / main

Method main

Recursion/Code/powerOf2.java:17–24  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

15
16 // Driver Code
17 public static void main(String args[])
18 {
19 Scanner in = new Scanner(System.in);
20 System.out.print("Enter a positive number : ");
21 int n = in.nextInt();
22
23 System.out.println("Factorial of " + n + " is " + power(n));
24 }
25}

Callers

nothing calls this directly

Calls 1

powerMethod · 0.95

Tested by

no test coverage detected