I'm trying to create a code that will ask the user for a number and then perform some calculations based on that number. What I want the program to do is:
If I type a character, the program will display a message and then take me back to the beginning of the program, where I can input again.
If I type a number the program is to carry on normally.
I assume I have to use loops for this but I have no idea how to do that. Could anyone help me out?