.NET application crashed
Posted: Wed Aug 14, 2019 2:17 am
Code: Select all
[BeginUltra]
private static void Main(string[] args)
{
for (;;)
{
int a;
switch (a = Console.Read())
{
case 49:
Console.WriteLine("1");
break;
case 50:
Console.WriteLine("2");
break;
case 51:
Console.WriteLine("3");
break;
default:
Console.WriteLine("s " + a.ToString());
break;
}
Console.WriteLine("ok");
Console.WriteLine();
}
}