How many times will the loop bodies execute in the


How many times will the loop bodies execute in the following loops?

a. int x = 5, y = 50;

do

{

x += 10;

}while(x < y);

b. int x = 25, y = 5;

while(x >= y)

{

x -= 5;

}

c. int y = 0;

for(int x = 5; x < 100; x += 5)

{

y++;

}

d. int x = 10, y = 1000;

while(x <= y);

{

x *= 10;

}

Request for Solution File

Ask an Expert for Answer!!
Other Subject: How many times will the loop bodies execute in the
Reference No:- TGS0647735

Expected delivery within 24 Hours