본문 바로가기
Programmers 기초

a와 b 출력하기

by lleesla 2024. 3. 9.

제출

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);
        System.out.println("b = "+ b);
    }
}

 

 

결과값

'Programmers 기초' 카테고리의 다른 글

덧셈식 출력하기  (0) 2024.03.12
특수문자 출력하기  (0) 2024.03.09
대소문자 바꿔서 출력하기  (0) 2024.03.09
문자열 반복해서 출력하기  (0) 2024.03.09
문자열 출력하기  (0) 2024.03.09