+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

10/20/2019 3:37:02 AM

Jonray

4 Answers

New Answer

+2

You can do this: Do: n = input() If n is in array, break out of loop While (True)

+1

Jonray, what programming language you are talking about?

+1

c language Lothar

0

That, or do: n = input() while n is not in array