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

Method main

Recursion/Code/sumFirstN.java:20–27  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

sumMethod · 0.95

Tested by

no test coverage detected