《21天学通C#》数字前面补0

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 课后习题
{
class Program
{
static void Main(string[] args)
{
for (int i = 0; i < 10; i++)
{
Console.Write("{0:D3}\n", i);
}
Console.WriteLine("请输入任意键退出程序");
Console.ReadKey();
}
}
}

 

posted on 2018-11-05 15:55  天源  阅读(146)  评论(0)    收藏  举报

导航