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
0
Answer:
Okkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Explanation:
Answered by
0
Answer:
int a=2,s=0;
do
{s=s+a;
a++;
System.out.println(s);
}while(a<=50);
Similar questions