© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
20 replies
maroonlol

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
image.png
image.png
GitHub
MiniApps/Square Root help at main · AbdulRaheemNazir/MiniApps
Contribute to AbdulRaheemNazir/MiniApps development by creating an account on GitHub.
MiniApps/Square Root help at main · AbdulRaheemNazir/MiniApps
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

[solved]
C#CC# / help
16mo ago
(Solved)
C#CC# / help
17mo ago
❔ ✅ solved
C#CC# / help
3y ago
solved
C#CC# / help
3y ago