프로그래머스 - 덧셈식 출력하기

Yoon·2024년 2월 12일
0

풀이

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+" + " + b + " = " + (a+b));
    }
}
  1. 45가 나오지 않게 괄호를 사용해서 출력해주기
profile
나의 공부 일기

0개의 댓글