using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { for (int x=1;x<=9;x++) { for (int y=1;y<=x ;y++) { Console.Write ("{0}*{1}={2}\t",x ,y ,x*y); if (x == y) { Console.WriteLine(); } } } Console .ReadKey (); } } }
网友评论