匿名通过本文主要向大家介绍了C#小程序等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
用C#写一个小九九乘法表
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleManyHellos { class Program { static void Main(string[] args) { Console.WriteLine("打印小九九乘法表"); int i, j; for (i = 1; i <= 9; i++) { for (j=1; j<=i; j++) { Console.Write("{0} * {1} = {2}\t", i, j, i * j); } Console.WriteLine(); } } } }
以上就是[C#小程序]命令行小程序之小九九乘法表的实现代码的详细内容,更多请关注微课江湖其它相关文章!