Solved

Which of the Following Conditions Can Be Added to the Code

Question 7

Multiple Choice

Which of the following conditions can be added to the code below so it will loop until the value of sum is greater than 100? Scanner in = new Scanner (System.in) ;
Int sum = 0;
Do {
Sum += in.nextInt() ;
}
While (/* put condition here */)


A) sum != 0
B) sum <= 100
C) sum > 100
D) sum == 100

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions