Computer Science, asked by shubhojit90, 8 months ago

Rewrite using do-while loop:
int a, s=0;
for (a=2; a<= 50; a++)
{
s=s+ a;

System.out.println (s);
}​

Answers

Answered by Anonymous
0

Answer:

Okkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

Explanation:

Answered by SounakGuchhait
0

Answer:

int a=2,s=0;

do

{s=s+a;

a++;

System.out.println(s);

}while(a<=50);

Similar questions