That makes it so I do the loop when I input a correct value. My aim is for the program to shut down if it's correct, but ask again if an incorrect value is given, until a correct value is entered.
I triedbut it still doesn't work properly, it shuts down whatever value I enter.Code:} while (input < 1 && input > 4);
EDIT:has done the trick, thanks for everyone's help!Code:} while (input < 1 || input > 4);