I need help to clean up my code. How can I combine my while loops by nesting? I was trying around and experimenting but I kept running into infinite loop issues. I'm basically validating the user to enter numbers (int and double) and I'm making the user have an error message when any letter, word, or symbol is entered. Help would be greatly appreciated. Thanks.
You have used too many while loops. It is not required to use as much as you used.
You may set one while loop and in the body of while loop, you can write if statement.
I am outside so I can not write the code wright now.
Best regards.