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

Method main

Recursion/Code/NthStair.java:22–29  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

20
21 // Driver Code
22 public static void main(String args[])
23 {
24 Scanner in = new Scanner(System.in);
25 System.out.print("Enter a number : ");
26 int n = in.nextInt();
27
28 System.out.println("Number of ways to reach " + n + "th step is " + countWays(n));
29 }
30}

Callers

nothing calls this directly

Calls 1

countWaysMethod · 0.95

Tested by

no test coverage detected