{
class Program
{
static void Main(string[] args)
{
int so;
Console.WriteLine("---Ban chon cong viec nao?---");
Console.WriteLine("1. Thuc hien cong viec so 1");
Console.WriteLine("2. Thuc hien cong viec so 2");
Console.WriteLine("3. Thuc hien cong viec so 3");
Console.WriteLine("4. Thoat");
Console.Write("Ban cho so may?");
so = int.Parse(Console.ReadLine());
switch (so)
{
case 1:
Console.WriteLine("Ban da chon viec so 1");
break;
case 2:
Console.WriteLine("Ban da chon viec so 2");
break;
case 3:
Console.WriteLine("Ban da chon viec so 3");
break;
case 4:
Console.WriteLine("Ban da chon thoat.");
Console.ReadLine();
Environment.Exit(0);
break;
default:
Console.WriteLine("Ban da chon viec so khong hop le");
Console.ReadLine();
Environment.Exit(0);
break;
}
Console.ReadLine();
}
}
}
0 comments:
Post a Comment