void CheckPassword(string input)
{
if (level == 1)
{
if (input == “Stone Age”)
{
Terminal.WriteLine(“congratulations… You may proceed…”);
}
else
{
Terminal.WriteLine(“Error… Try again…”);
}
}
else if (level == 2)
{
if (input == “Middle Age”)
{
Terminal.WriteLine(“congratulations… You may proceed…”);
}
else
{
Terminal.WriteLine(“Error… Try again…”);
}
}
else if (level == 3)
{
if (input == “Information Age”)
{
Terminal.WriteLine(“congratulations… You may proceed…”);
}
else
{
Terminal.WriteLine(“Error… Try again…”);
}
}
}
Is it efficient enough? Would like to hear some opinions