循环打印0-99

using System;
using System.Collections.Generic;
using System.Text;

namespace helloworld
{
class Program
{

//public static int i = 2;
static void Main(string[] args)
{
for (int i = 0; i < 100; i += 10)
{
for (int j = i; j < i + 10; j++)
{
if (j < 10)
{
Console.Write("\0"+"\0" + j);
}
else
Console.Write("" + j);

}
Console.WriteLine();


}
}
}
}

 

posted on 2011-11-10 16:48  丁丁不忆男  阅读(120)  评论(0)    收藏  举报

导航