Very good program. It compiles, runs and gives correct output.
I liked that you payed attention to the details such as what happens when user enters a number different from 0 and 1.
Please make sure that you have "return 0" at the end of main() so that you avoid having warnings when program is compiled.
It would be great if you could add a little bit more information about testing procedure. For example, you could have reported not only numbers that you have tested but also number of questions being asked.