15. Rewrite the following loop as do-while loop.
int counter = 1, sum = 0;
while( counter <= 50)
{
Sum += counter;
Counter += 5;
}
Attachments:
Answers
Answered by
2
Answer:
ghixouxpyrxtdulrxurzoyzsyrlyrr
Answered by
0
Answer:
int counter = 1, sum = 0;
do
{
sum+=counter;
counter+=5;
}
while(counter ≤=50);
Explanation:
hope it was helpful to you please mark as brainliest
Similar questions