Question: How many times does the while loop execute, if the input is 105 107 99 103? see image How many times does the while loop
How many times does the while loop execute, if the input is 105 107 99 103? see image

How many times does the while loop execute, if the input is 105 107 99 103? Assume a Scanner object sonr has been instantiated, and that the tokens in the input are delimited by the space character. That means there are 4 tokens in the input. int num = scor.nextint(); while (num > 100) { // Do something num = scnr.nextInt(); } Select one: O 4 O 3 O O 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
