I'm trying to get this function to work for class where I'm asking the user to input a number and I'm trying to validate it with this method here.

The issue is the program runs and loops one full...