백준 A+B(자바, C#)
2023. 2. 24. 21:14ㆍC# 알고리즘 코딩(프로그래머스)
자바
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);
}
}
}
'C# 알고리즘 코딩(프로그래머스)' 카테고리의 다른 글
프로그래머스 C# 숫자 비교하기(파이썬, 자바) (0) | 2023.03.31 |
---|---|
프로그래머스 C# 나이 출력(파이썬) (0) | 2023.03.30 |
프로그래머스 C# 두 수의 차, 두 수의 곱, 나머지 구하기 (0) | 2023.03.28 |
C# 두 수의 차, 두 수의 곱 프로그래머스 (0) | 2023.02.13 |
나머지 구하기 프로그래머스 (0) | 2023.02.11 |