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


4 Answers

New Answer


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


Jonray, what programming language you are talking about?


c language Lothar


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