Computer Science, asked by saniyasan1230, 3 months ago

rewrite the following program using loop sum=0 i=1 while (i=<10): sum=sum+i i=i+1 print( "sum=" ,sum)​

Answers

Answered by ParshuuOO7
7

Explanation:

int sum =0, i = 1;

while ( i <= 10 ) {

sum= sum + i ;

i = i + 1;

}

printf ("sum=%d",sum);

Similar questions