a와 b 출력하기

sun·2023년 12월 27일

코딩테스트

목록 보기
7/16
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);
    }
}

입력값 〉 "4 5"
기댓값 〉 "a = 4
b = 5"
실행 결과 〉 테스트를 통과하였습니다.
출력 〉 a = 4
b = 5
테스트 결과 (~˘▾˘)~
1개 중 1개 성공

0개의 댓글