Solved
I have made a square root calculator
It works when someone enters an invalid Input to the square root it repeats
however, when it says to enter the decimal value and there is a error it goes through the try-catch and goes and repeats the method. I would like for when the user is asked to input a number of decimals and when invalid input is typed it will repeat that question
https://github.com/AbdulRaheemNazir/MiniApps/blob/main/Square%20Root%20help
here is the link to the code, any help would be appreicated it
It works when someone enters an invalid Input to the square root it repeats
however, when it says to enter the decimal value and there is a error it goes through the try-catch and goes and repeats the method. I would like for when the user is asked to input a number of decimals and when invalid input is typed it will repeat that question
https://github.com/AbdulRaheemNazir/MiniApps/blob/main/Square%20Root%20help
here is the link to the code, any help would be appreicated it


GitHub
Contribute to AbdulRaheemNazir/MiniApps development by creating an account on GitHub.