201502 C#初級班 for迴圈使用
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args) //static靜態 void 不回傳值 Main 進入點
{
int a = 1;
for(int i=0;i<10;i++){Console.WriteLine("a:" + a.ToString() + "\n");}
Console.ReadKey();
}
}
}
Comments
Post a Comment