0
Int n;
Int sum=0, i=0;
cin>>n;
do {
sum +=i;
i++;
}while(n>=i)
cout<<sum;
1st Jan 2017, 6:28 AM
Shiv Kumar
Often have questions like this?
Learn more efficiently, for free:
Hot today
What is machine learning?
1 Votes
Which language to start with?
0 Votes
Question!
0 Votes
how do we do this code?
0 Votes



