using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 九乘九乘法表格 { class Program { static void Main(string[] args) { Console.WriteLine("九乘九乘法表格:"); int a = 0; for (int i = 1; i < 10; i++) { a++; Console.WriteLine("1*" + a + "=" + i * 1); } int b = 0; for (int i = 1; i < 10; i++) { b++; Console.WriteLine("2*" + b + "=" + i * 2); } int c = 0; for (int i = 1; i < 10; i++) { c++; Console.WriteLine("3*" + c + "=" + i * 3); } int d = 0; for (int i = 1; i < 10; i++) { d++; Console.WriteLine("4*" + d + "=" + i * 4); } int e = 0; for (int i = 1; i < 10; i++) { e++; Console.WriteLine("5*" + e + "=" + i * 5); } int f = 0; for (int i = 1; i < 10; i++) { f++; Console.WriteLine("6*" + f + "=" + i * 6); } int g = 0; for (int i = 1; i < 10; i++) { g++; Console.WriteLine("7*" + g + "=" + i * 7); } int h = 0; for (int i = 1; i < 10; i++) { h++; Console.WriteLine("8*" + h + "=" + i * 8); } int j = 0; for (int i = 1; i < 10; i++) { j++; Console.WriteLine("9*" + j + "=" + i * 9); } Console.ReadLine(); } } }
原文:http://www.cnblogs.com/xubin-747/p/4705914.html