Sum of first N numbers C++ sumOf_N_Numbers.cpp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17#include <bits/stdc++.h> using namespace std; int sumOf_N_Numbers(int n){ int sum=0; if(n==0) return 0; sum = n + sumOf_N_Numbers(n-1); return sum; } int main() { int n; cin >> n; cout << sumOf_N_Numbers(n); return 0; } Output 5 15