I want to check the input of the user.
Only positive nos are allowed. I want to pass the input of the user to a function which checks that if it is i positive no. then it allows the user to continue further otherwise it gives an error and asks the user if he would like to try again. if the user enters yes the function should go back to my calling fucntion to ask the user a new input and if user enters no the program terminates.
how do i do it?
I know how to chek but m facing problem in going back to the calling statement n terminating the program.
the calling statement is in the main part and i not a separate function