[JAVA 문제 풀이] 95. 덧셈식 출력하기

프로그래머스 (181947)
Stupefyee's avatar
Feb 20, 2025
[JAVA 문제 풀이] 95. 덧셈식 출력하기
notion image
 

내가 작성한 코드

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)); // System.out.printf("%d + %d = %d", a, b, a + b); sc.close(); } }
 
Share article

stupefyee