| 14 | } |
| 15 | } |
| 16 | int 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 | } |
nothing calls this directly
no test coverage detected