🎴 Flashcard Mode
C Programming: Loops and Control Structures
Card1 / 15
Mastered0
Review0
QuestionClick to flip
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;}
AnswerClick to flip back
A
4 time
💡 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'.