출처
정답
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(String.format("b = %d", b));
}
}
문제
'프로그래머스 > 코딩 기초 트레이닝' 카테고리의 다른 글
a와 b 출력하기 (C) (0) | 2023.07.10 |
---|---|
a와 b 출력하기 (JavaScript) (0) | 2023.07.10 |
a와 b 출력하기 (Scala) (0) | 2023.07.10 |
a와 b 출력하기 (Python) (0) | 2023.07.10 |
문자열 출력하기 (JavaScript) (0) | 2023.07.09 |