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

Function main

Lab_07/fibonacci.cpp:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 }
15}
16int main()
17{
18 cout << "\t\t\t***Program to calculate the sum of natural numbers using recursion***" << endl;
19 cout << "Enter how many numbers would you like to output : ";
20 int num;
21 cin >> num;
22 cout << "Fibonnaci Series: "; // inputing the quantity of numbers
23 for (int i = 0; i < num; i++) // for loop for displaying series
24 cout << " " << fibonacci(i); // calling function
25 cout << endl;
26 system("pause");
27 return 0;
28}

Callers

nothing calls this directly

Calls 1

fibonacciFunction · 0.85

Tested by

no test coverage detected