Computer Science, asked by ashessaha564gmailcom, 11 months ago

}
22.
executed ? (show the working)
x = 5, y = 50;
while(x <= y){
y = y / x;
System.out.println(y);
}
23.
Analyze the following program segment and determine how many times the body of loop will be
The following for loop was written to display numbers from 30 to 20 in separate lines. It, howev​

Answers

Answered by venkyDadsena
0

Answer:

22)

The output :

10

2

Explanation:

when first time while loop executed, then value of y will be 10 , which is more then value of x. therefore compiler again enter into loop and this time the value of y will be 2 which is less then x. therefore compiler exit from the loop

Similar questions