99乘法表變化版

#C#

Posted by Phyxsius on 2023-09-14

namespace ConsoleApp3
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //呼叫方法
            ShowData(6, 8);
        }

        static void ShowData(int min, int max)
        {
            for (int i = min; i <= max; i++)
            {
                for (int j = min; j < max; j++)
                {
                    Console.Write(i + " * " + j + " = " + i * j + "\t");
                }
                Console.WriteLine();
            }
        }
    }
}

#C#







Related Posts

Fetch、Promise 介紹與應用

Fetch、Promise 介紹與應用

[7] 進階資料型別 part2 - Tuple

[7] 進階資料型別 part2 - Tuple

C++ 教學(四) 條件敘述句

C++ 教學(四) 條件敘述句


Comments