Computer Science, asked by alirehan786, 9 months ago

#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 tripathyspandan23
1

Answer:

here u will get the sum.....

Similar questions