Jump to content

Hi I 'm trying to make a fake password screen as a console application in c# but I cant work out...


G+_Dylan Warman
 Share

Recommended Posts

This was one of the first things I did too.

 

i asked for the user to create a username and then a pass word and used console.readline and defined strings called user and pass.

 

I then had it print welcome and asked for username and password and defined 2 more strings usercheck and passcheck

 

I used an if statement to check they matched both user and pass

 

is (usercheck == user && passcheck == pass)

    print a success message

else

    print a failed message.

Link to comment
Share on other sites

 Share

×
×
  • Create New...