#include<iostream>
using namespace std;
int main()
{
int n, i=1;
cout<<"Enter a positive integer:";
cin>>;
long sum =0;
while (i<=n)
sum + = i++
cout<<c"\t"<<sum<<endl;
}
plz give output
Answers
Answered by
1
Answer:
here u will get the sum.....
Similar questions
Math,
4 months ago
Math,
4 months ago
Science,
9 months ago
Science,
9 months ago
Science,
1 year ago
Environmental Sciences,
1 year ago
Business Studies,
1 year ago