static void Main(string[] args)
{
int i = 0;
string can = "n";
string yes = "y";
while (can.ToLower() == "n" && i < 10)
{
Console.WriteLine("同学们这道题你们会了吗");
can = Console.ReadLine();
i++;
}
//Console.WriteLine("放学吧");
while (yes.ToLower() == "y")
{
Console.WriteLine("放学吧");
yes = Console.ReadLine();
}
} |
|