using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace foreach01{class Program{static void Main(string[] args){int item;for (item = 1; item < 31; item++){if ((item % 10) == 0){Console.WriteLine("{0:D2}", item);}else{Console.Write("{0:D2} ", item);}}Console.ReadKey();}}}