코딩테스트/[C#] 프로그래머스

[프로그래머스 | C# | Lv.0] 덧셈식 출력하기

냠냠쿠 2023. 9. 9. 20:30
728x90

 

https://school.programmers.co.kr/learn/courses/30/lessons/181947

 

📝 나의 풀이

using System;

public class Example
{
    public static void Main()
    {
        String[] s;

        Console.Clear();
        s = Console.ReadLine().Split(' ');

        int a = Int32.Parse(s[0]);
        int b = Int32.Parse(s[1]);

        Console.WriteLine("{0} + {1} = {2}", a, b, a + b);
    }
}
728x90