Ok i understand...what I need to do when y==0 is to display the error and then prompt the user if he wants to continue...if they type yes then they will get to input another 2 numbers, if they type no then the program will stop.
If I add return 0; for y==0 I do get the Error message displayed but I also get a 0 displayed and the program stops...