Convert for loop into while and do while loop
Question 1:
int sum=0, x=5;
for Cintial, i<= 15; itt)
ş
sum=sum + x
x +=39
3
System.out, println("Sum="t som;
Attachments:
Answers
Answered by
1
Answer:
int sum=0,x=5,i=1;
do
{
sum=sum+x;
x+=3;
}
while(i<=15);
System.out.println("Sum="+sum);
Similar questions
Math,
2 months ago
Biology,
2 months ago
English,
4 months ago
Social Sciences,
4 months ago
Math,
10 months ago
Social Sciences,
10 months ago