Solved

If You Need to Write a Do-While Loop That Will

Question 31

Multiple Choice

If you need to write a do-while loop that will ask the user to enter a number between 2 and 5 inclusive, and will keep asking until the user enters a correct number, what is the loop condition?


A) 2<=num<=5)
B) 2<5<number)
C) 2 <= number && number <= 5)
D) 2 < number || number > 5)
E) 2 > number && number > 5)

Correct Answer:

verifed

Verified

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

Related Questions