Feb-15-2023, 06:21 PM
I do not understand the question. Your code provides no way to enter a second input. You run the program. The program waits for you press the enter key. The program converts whatever you typed into an int. If the int is > 19 the program prints "old", otherwise it prints "young". Execution reaches the end of the program, and the program ends.
Do you want to repeat the code? (get input, print...)? To do that you need some kind of loop (for or while).
Do you want to repeat the code? (get input, print...)? To do that you need some kind of loop (for or while).