I know this is probably a really easy question, but my teacher failed to mention how to do it, so here goes.
I'm making a simple program that tells a user if a sequence of given numbers are even or odd. Here's what the program should look like:
Enter a sequence of numbers (0 to quit): 12 4 19 3 0 12 is even 4 is even 19 is odd 3 is odd
I've gotten the program made, except my output stops at "12 is even".
My question is, how do I get my program to loop through all of the numbers and stop at 0?
I tried using a while loop,
while (x != 0)
But, it just looped "12 is even" over and over.