Multiple choice

How many number of times will the loop mentioned below be executed? int x=5;int y=30;while(x<=y){ x=y/x; y=y-10;}

  1. 1 time

  2. 2 time

  3. 3 time

  4. 4 time

  5. 5 time

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is the correct option as value of x becomes equal to value of y after 4 iteration. When both x and y values become equal to '0'.