Analyze it and give the output
x = 5; y = 50;
while (x<=y)
{
y = y/x;
System.out.println(y);
}
Answers
Answered by
17
Answer:
10
2
Step-by-step explanation:
First run:
y=y/x
y=50/5=10
prints 10
Second run:
y=y/x
y=10/5=2
prints 2
Third run does not occur because x(5)>y(2)
Please mark this brainliest!
Similar questions