Question: / / Program asks user to enter password / / If password is not home, lady or mouse / / the user must re -
Program asks user to enter password
If password is not "home", "lady" or "mouse"
the user must reenter the password
using static System.Console;
class DebugFive
static void Main
const string PASS "home";
const string PASS "lady";
const string PASS "mouse";
string password;
WriteLinePlease enter your password: ;
password ReadLine;
while password PASS && password PASS && password PASS
WriteLineInvalid password. Please enter again: ;
password ReadLine;
WriteLineValid password";
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
