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
Social Sciences,
26 days ago
Economy,
26 days ago
English,
1 month ago
Science,
1 month ago
Math,
8 months ago