Give the output and determine how many times the loop will execute: x=1; y=1;
while(x<=y)
{
y = y/x;
System.out.println(y);
}
Answer fast plss...
Answers
Answered by
2
Answer:
Loop will execute only 1 time.
Output y=1(1/1)
Answered by
3
Output will be 1 & it will create an infinite loop printing 1.
Explanation:
y / x or 1 / 1 is 1 and 1 is less than or equal to 1
Similar questions