#region Using directives
using System; using System.Collections.Generic; using System.Text;
#endregion
namespace ConsoleApplication1 { class Program { static void Main() { Console.WriteLine("If you want to run this program,Enter a PassWord:"); string s = Console.ReadLine(); if (s == "777") { for (int i = 10; i>0; i--) { Console.WriteLine(" {0}Seconds Left",i); } Console.WriteLine("Merry Christmas!"); } else { Console.WriteLine("Hey,No kiding!Dude"); } } } }
我想的是倒数10秒,就显示Merry Christmas。可是运行的时候进入无限循环,这是怎么回事呢
[此贴子已经被作者于2004-12-24 11:48:26编辑过]