[백준] C# : A-B (1001번)

ssu_hyun·2022년 7월 4일
0

Data Structure & Algorithm

목록 보기
12/67
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Baekjoon
{
    class Program
    {
        static void Main(string[] args)
        {	
        	// 1. 입력받은 문자열을 쪼개 배열에 삽입
            string [] input = Console.ReadLine().Split();
            // 2. int로 형변환해서 두 문자열 뺄셈
            Console.WriteLine(int.Parse(input[0]) - int.Parse(input[1]));
        }
    }
}

0개의 댓글