Computer Science, asked by chuky3868, 1 year ago

Program in c++ for sum of n natural number using for loop

Answers

Answered by skmusical18
1

#include <iostream>

using namespace std;

int main ()

{

int n

cout <<"enter the required terms";

cin>>n

for (int i=1;i<=n;i++)

cout <<i;

return 0;

}

Similar questions