Then you just need to implement Hamsterman's logic into a 'while' loop.
The type of loop isn't the problem, it's the conditions on which it runs under. As Hamsterman quite rightly pointed out, it's impossible for result of the conditions to ever be false. I think you want to use the logical 'and' operator.
You may want to play with the order of the logic evaluations. Putting the most commonly expected responses first will cause a better average big O evaluation time because of the rules of short-circuit logic.