MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / main2

Function main2

Lab_07/sum.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13int main2()
14{
15 cout << "\t\t\t***Program to calculate the sum of natural numbers using recursion***" << endl;
16 int num;
17 cout << "Please enter the interval: ";
18 cin >> num; // inpuing the interval of the numbers
19 cout << "The sum is : " << sum(num); // calling function 'sum'
20 return 0;
21}

Callers

nothing calls this directly

Calls 1

sumFunction · 0.85

Tested by

no test coverage detected