백준 A+B(자바, C#)

2023. 2. 24. 21:14C# 알고리즘 코딩(프로그래머스)

자바

 

 

mport java.util.*;
public class Main{
public static void main(String args[]){
  Scanner sc = new Scanner(System.in);
  int a, b;


  a = sc.nextInt();
  b = sc.nextInt();
  System.out.println(a + b);
}
}

 

 

//////////////////////////

 

 

C#

 

 

using System;

namespace Baekjoon {
    class Program {
        static void Main() {
            string s = Console.ReadLine();
            string[] ss = s.Split();


            int a = int.Parse(ss[0]);
            int b = int.Parse(ss[1]);
            Console.WriteLine(a+b);
        }
    }
}