Analyze the following program segment and determine how many times the body of loop will be executed
int x=6; int y=80;
while(x is less than y)
Answers
Answered by
0
Answer:
the loop will execute 74 times.
Answered by
0
x=6
y=80
while x<y:
The loop will be executed infinite times.
This is because 6 is always less than 80. Hence the loop goes on and on as the statement is true.
Similar questions