Which of the following conditions can be added to the code b

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?

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

Solution

Answer: B. sum <= 100

This condition will loop until the value of sum is greater than 100

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? A) sum != 0 B) sum <= 100 C) sum

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site