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

C++ 教學(一) 基本介紹 & Hello World

C++ 教學(一) 基本介紹 & Hello World

[ Nuxt.js 2.x 系列文章 ] VueX Store 搭配 vuex-persistedstate 狀態保存工具

[ Nuxt.js 2.x 系列文章 ] VueX Store 搭配 vuex-persistedstate 狀態保存工具

Day 2 - Data Type & Calculate

Day 2 - Data Type & Calculate


Comments