Hello everyone. I started learning C# a couple of weeks ago and have progressed through all of Bob Tabor's "C# Fundamentals for Absolute Beginners" over on the Microsoft Virtual Academy. This is a simple console application I wrote that prompts a user for a username and password then allows "access" if the password is correct and "denies" access after 3 failed attempts if the password is incorrect.
I'm looking for critique on how efficient the code is and if there are any ways I could improve my coding. I think it's important to develop good habits initially so that I can develop more robust code later on with ease. Any information would be helpful. Thanks for your time!
I have posted the code on pastebin HERE
by First_Avenue via /r/csharp