啊斗哇

导航

C#窗体程序编写一个99乘法表

1.我们先看看效果:

2.下面是主要代码内容:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1 {
    class Program {
        static void Main(string[] args) {

            //九九乘法表
            for (int i = 1; i <= 9; i++) {
                for (int j = 1; j <= i; j++) {
                    Console.Write(i + "*" + j + "=" + i * j);
                    Console.Write(" ");
                }
                Console.WriteLine();
            }
            Console.ReadKey();
        }
    }
}

  

 

posted on 2019-05-07 15:27  啊斗哇  阅读(3813)  评论(0编辑  收藏  举报