본문 바로가기

Algorithm/백준

[백준] 2558번: A+B - 2 - JAVA [자바]

 


 

문제


 

 

문제 풀이


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int number1 = sc.nextInt();
        int number2 = sc.nextInt();
        System.out.println(number1 + number2);

    }
}

 

 

결과