using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
for (int i = 0; i < 3;i++ )
System.Console.WriteLine("{0}:Hello World!",i);
System.Console.ReadLine();//為了便于查看上面打印三個HelloWorld的結果
}
}
}
說明:該程序為:Windows Console Application
打印三個hello World
Main函數是該項目的啟動入口。
在控制臺應用程序中默認引用包括:System,System.Data,System.Xml
運行結果如下:
0:Hello World!
1:Hello World!
2:Hello World!
posted on 2009-09-28 21:46
期待明天 閱讀(204)
評論(0) 編輯 收藏 所屬分類:
CSharp