[Coding Test_Java] 6. 덧셈식 출력하기

김미숙's avatar
Aug 12, 2025
[Coding Test_Java] 6. 덧셈식 출력하기
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(); int c = a+b; if(1<=a && b <=100){ System.out.println(a +" + "+b+" = "+c); } } }
Share article

parangdajavous