+ 1
Do while loops with arrays
So I’m trying to make a do while loop that will loop until the user enters the right number that is in an array ,pls help
4 Respostas
+ 2
You can do this:
Do:
n = input()
If n is in array, break out of loop
While (True)
+ 2
That, or
do:
n = input()
while n is not in array
+ 1
Jonray, what programming language you are talking about?
+ 1
c language Lothar