how to return function to its beginning
I am trying to figure out exactly how to return a function to its very beginning after it ends (for any reason at all).
I will use pseudo code to exemplify:
printf please enter your age;
scanf (get age)
if ( age<18 || age>105) is false
printf you are underage, please
enter age within range
Ok, now I want to know how I can get back to the beginning of this function so the customer can enter an age within the correct age limit without having to start the program from the very beginning. Can anyone help?