How I display the sum of n number using do-while? In c | SoloLearn: Learn to code for FREE!

0

How I display the sum of n number using do-while? In c

5/14/2020 12:27:48 PM

Rachit Jaisinghani

1 Answer

New Answer

+2

int i=0; int sum=0; do{ sum+=i; i++; }while(i<n);