I am attempting to write a loop that will repeat until the user enters one of the correct choices (either 1 or 0). For some reason when I have the loop written as below it
You have to use && operator.
while ((control != 0 ) && (control != 1))