Question: double num; int incr = 0 ; Scanner reader = new Scanner ( System . in ) ; do { incr = incr + 1
double num;
int incr ;
Scanner reader new ScannerSystemin;
do
incr incr ;
System.out.printlnPlease enter a number when done: ;
num reader.nextDouble;
while num ;
System.out.println incr;
Question options:
The execution of the loop is independent of user input.
The program prints the count of positive inputs.
The loop will execute only when is entered.
The loop will execute at least once even if the user has entered the sentinel value.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
