Skip to content

Commit

Permalink
Added a text before program exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridireacht committed May 15, 2022
1 parent b452631 commit f613692
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Console/PrimeNumbers/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
Check();
ManageDB();

// save window from closing after the very end
Console.WriteLine("\nPress any button to close the program...");

// save window from pre-closing
#if !DEBUG
Console.ReadKey();
#endif
Expand Down

0 comments on commit f613692

Please sign in to comment.