《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();
        }
    }
}

    拼命折腾,最差不过大器晚成~
                    
                
                
            
        
浙公网安备 33010602011771号