I've made a menu, using a switch(case) function, onto which the user should only input integers, but i've been trying to make a small bit of code to validate the input. When a letter is input it runs the 'default:' sequence and loops it.
Do i need to 'flush' the variable that the switch(case) uses or what? I've seen that term used on here a few times before