zoukankan      html  css  js  c++  java
  • C#console中实现九九乘法表

    using System;
    using System.Collections.Generic;
    using System.Text;

    namespace 課題2
    {
        class Program
        {
            public static void Main()
            {
                for (int i = 1; i < 10; i++)
                {
                    for (int j = 1; j <= i; j++)
                        Console.Write(i * j + "=" + Convert.ToString(i) + "*" + Convert.ToString(j) + " ");
                    Console.WriteLine();
                }
                Console.Read();
            }
        }
    }

  • 相关阅读:
    ZOJ 3556
    ZOJ 2836
    HDU 2841
    HDU 4135
    POJ 3695
    POJ 2773
    HDU 4407
    HDU 1796
    ZOJ 3688
    ZOJ 3687
  • 原文地址:https://www.cnblogs.com/loverain/p/1331333.html
Copyright © 2011-2022 走看看