标签:
while (true) { Console.Write("烧水不?Y/N:"); string a = Console.ReadLine(); if (a =="Y" ) { Console.WriteLine("多少度了"); for (int i = 1; i <=100; i++) { //Console.WriteLine("多少度了"); if (i==30) { Console.WriteLine("水温了"+i); } else if (i == 50) { Console.WriteLine("水热了" + i); } else if (i == 80) { Console.WriteLine("水快开了" + i); } else if (i == 100) { Console.WriteLine("水开了" + i); } else { Console.WriteLine("水" + i+"度"); } Thread.Sleep(600);
} } }
标签:
原文地址:http://www.cnblogs.com/Mr-xue/p/4389074.html