My error message is not popping up on the last else if statement although I am inputting a negative number.
What I am trying to get it do is that if a negative number is inputted in, the program will print the error message and then continue with the loop where is asks for the input of the name.
Are you freaking kidding me? I gave you a working program that does exactly what you say your current program is not doing, in your last post, less than an hour ago. Go read the code I gave you.
My bad. I guess I wasn't so clear with you on what I want it to do. What I am trying to get it do is that if a negative number is inputted in, the program will print the error message and then continue with the loop where it asks for the input of the name. I do not want it to calculate the interest or any of the numbers when a negative number is inputted in. I don't want it to give me the table if a negative number is inputted. I just want the error message and then for the loop to start again to where it asks for the name.