How many times loop will be executed in the following flow chart ?
How many times loop will be executed in the following flow chart ?
Flowchart: Start → U=70 → decision 'IS U>=0?' — NO: exit; YES: PRINT U → U=U−35 → back to the decision.
Show answerHide answer
Correct answer: (C) 3
Explanation
Corrected: the book's key says (b). U takes the values 70, 35 and 0 (all >= 0), so the loop body runs 3 times.