2.3: Challenge Answers

In this module we'll give possible answers to the challenges from the last module.

BRONZE ANSWER

int value = 11;
if (value >= 10)
{
    Console.WriteLine("The value is greater than or equal to 10");
}

SILVER ANSWER

string password = "LetMeIn1234!";

if(password == "LetMeIn1234!"){
    Console.WriteLine("Welcome user!");
} else {
    Console.WriteLine("Something went wrong");
}

GOLD ANSWER

Last updated