| 5 | #include <iostream> |
| 6 | using namespace std; |
| 7 | int main5() { |
| 8 | int n; |
| 9 | float sum = 0; |
| 10 | cout << "Enter the value of n: "; |
| 11 | cin >> n; |
| 12 | for (int i = 1;i <= n;i++) |
| 13 | sum += 1 / i; |
| 14 | cout << "Sum is : " << sum << endl; |
| 15 | system("pause"); |
| 16 | return 0; |
| 17 | } |
nothing calls this directly
no outgoing calls
no test coverage detected