[BAEKJOON] #1000 (Java)

Inwook Baek ·2021년 9월 29일
0

Algorithm Study

목록 보기
5/38
post-thumbnail

Problem Link

Problem:
Given two integers A and B, print A+B. (0 < A, B < 10)

My Code:

import java.util.Scanner;

public class BaekJoon_1000 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        
        scanner.close();
        
        System.out.print(a + b);
  }
}

Input

1 2

Output

3

0개의 댓글