본문 바로가기

Programmers/1단계 기초 트레이닝

[Day01] a와 b 출력하기

풀이코드

import java.util.Scanner;

public class Solution {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        System.out.println("a = " + a + "\nb = " + b);
    }
}