Hi, i'm currently learning C# basics and I got and error in my code:
Console.WriteLine("Enter passwordi");
Console.Write("");
string psw = Console.ReadLine();
if (psw == "1234")
Console.WriteLine("Password is valid");
Console.ReadLine();
}
else {
Console.WriteLine(" Your password is not valid ");
Console.ReadLine();
}
}
}
The part when I type 1234 as a password works, but if I try to write anything else, nothing happens.