© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
Eagle

✅ After 2 wrong guesses, the program closes immediately

As the title says, after 2 wrong guesses the program doesnt show the text, or wait 3000 milliseconds. It just closes immediately. I dont know if Environment.Exit is a correct command to use in this situation, i just looked it up. Basically, after 2 wrong guesses i want the program to wait 3 seconds and then close.
Screenshot_2023-03-19_190524.png
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

My program closes after I run a foreach code. [Answered]
C#CC# / help
4y ago
Console auto closes instantly when i run the program
C#CC# / help
16mo ago
✅ After a number is entered the program ends
C#CC# / help
3y ago