Question Authors' Forum

Error while testing

Picture of Richard Lobb
Re: Error while testing
by Richard Lobb - Thursday, 20 April 2017, 8:20 AM
I think you're misunderstanding how the tests work. The program is executed once for each test. You want the program to read a number, print a message saying if it's even or odd, then read another number if the first one was odd. In that case both the input numbers must appear in the same test, not in separate tests. Please re-read my previous answer about how to define the standard input and the expected output.