using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;

namespace LearnDotnet
{

    internal class Program
    {
        
       
        static void Main(string[] args)
        {
            int num = 0;
            Console.WriteLine("* 구구단의 단수 1 <= n <= 9");
            Console.Write("구구단의 단수를 입력하세요: ");
            num = Convert.ToInt32(Console.ReadLine());

            for (int i = 0; i < 10; i++)
            {
                if (i == 0)
                {

                }
                else
                {
                    Console.WriteLine("{0} x {1} = {2}", num, i, num*i);
                }
            }



        }
    }
}

반응형

'KDT > C# 프로그래밍' 카테고리의 다른 글

9번 문제  (0) 2023.07.20
8번 문제  (0) 2023.07.20
6번 문제  (0) 2023.07.20
5번 문제  (0) 2023.07.20
4번 문제  (0) 2023.07.20

+ Recent posts