2018-11-21作业2

2018-11-21  本文已影响0人  零二幺五

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { 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(); } } }

上一篇 下一篇

猜你喜欢

热点阅读