Top

[백준/C#(.NET)] 2588 곱셈

전산 소프트웨어(코딩)/C#[메인]

2023. 7. 5.

백준 온라인 저지 / 2588 곱셈

https://www.acmicpc.net/problem/2588

 

사용언어 : C# (.NET)

알고리즘 : 

□코드 작성(해답지)

using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;


namespace boj
{
    class Program
    {
        static void Main(string[] args)
        {
            string a = ReadLine();
            string b = ReadLine();

            WriteLine(int.Parse(a) * (int)Char.GetNumericValue(b[2]));
            WriteLine(int.Parse(a) * (int)Char.GetNumericValue(b[1]));
            WriteLine(int.Parse(a) * (int)Char.GetNumericValue(b[0]));
            WriteLine(int.Parse(a) * int.Parse(b));
        }
    }
}