Miscellany
public text v1 · immutable class Program
{
static void Main()
{
int myNumber = 1337;
Console.Write("Enter a number: ");
string theirInput = Console.ReadLine();
int theirNumber = int.Parse(theirInput);
Console.WriteLine();
if (1337 == theirNumber)
{
Console.WriteLine("You got it right!");
}
else (myNumber != theirNumber)
{
Console.WriteLine("No, you got it wrong. You're no psychic!");
}
Console.ReadLine();
}
}
}