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