[BOJ] 백준 1000 - A+B

Lynn·2021년 1월 1일
0

Algorithm

목록 보기
3/43
post-thumbnail

👩🏻‍💻 문제

👩🏻‍💻 정답 코드

import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();
        System.out.println(a+b);
    }
}

스캐너로 a랑 b에 입력을 받고 a+b 값을 바로 출력해준다. 그냥 입력 받기 연습 문제?

profile
wanderlust

0개의 댓글

Powered by GraphCDN, the GraphQL CDN