98.9k views
5 votes
When a loop condition is grade >= 90, what values would you use to test your loop?

a. 88 and 89

b. 0 and 90

c. 89, 90 and 91

d. 90, 91 and 92

1 Answer

1 vote

Answer:

C. 89,90 and 91.

Step-by-step explanation:

Since the loop condition is grade>= 90 the values i would use to test the loop are 89,90 and 91.

So that we can check for 3 different conditions.

89 is less than 90 so we can check for <90.

90 is equal to 90 so we can check for =90.

91 is greater than 90 that condition will also be checked.

Hence we conclude that the answer is option C.

User Petobens
by
5.6k points