标签:sys using main mes csharp write name todo []
using System; namespace lianxi8 { class Program { public static void Main(string[] args) { for (int i=1;i<10;i++){ for(int j=1;j<10;j++){ Console.Write(i+"*"+j+"="+(i*j)+" "); } } // TODO: Implement Functionality Here Console.Write("Press any key to continue . . . "); Console.ReadKey(true); } } } 第一种 using System; namespace lianxi7 { class Program { public static void Main(string[] args) { for(int i=1;i<=9;i++){ int g=9; Console.Write(g+"*"+i+"="+(i*g)); Console.Write(" "); int f=8; Console.Write(f+"*"+i+"="+(i*f)); Console.Write(" "); int d=7; Console.Write(d+"*"+i+"="+(i*d)); Console.Write(" "); int b=6; Console.Write(b+"*"+i+"="+(i*b)); Console.Write(" "); int a=5; Console.Write(a+"*"+i+"="+(i*a)); Console.Write(" "); int c=4; Console.Write(c+"*"+i+"="+(i*c)); Console.Write(" "); int ch=3; Console.Write(ch+"*"+i+"="+(i*ch)); Console.Write(" "); int che=2; Console.Write(che+"*"+i+"="+(i*che)); Console.Write(" "); int chen=1; Console.WriteLine(chen+"*"+i+"="+(i*chen)); } // TODO: Implement Functionality Here Console.Write("Press any key to continue . . . "); Console.ReadKey(true); } } } 第二种
标签:sys using main mes csharp write name todo []
原文地址:https://www.cnblogs.com/llhhcc/p/9795141.html