-
[java]백준 사칙연산 10869번알고리즘 문제풀이/백준(자바) 2023. 3. 20. 23:13
코드
import java.util.Scanner; public class BOJ_10869 { public static void main(String[] args) { Scanner in = new Scanner(System.in); short a = in.nextShort(); short b = in.nextShort(); System.out.println(a+b); System.out.println(a-b); System.out.println(a*b); System.out.println(a/b); System.out.println(a%b); in.close(); } }
링크
https://www.acmicpc.net/problem/10869
'알고리즘 문제풀이 > 백준(자바)' 카테고리의 다른 글
[java]백준 A×B 10998번 (0) 2023.03.20 [java]백준 A/B 1008번 (0) 2023.03.20 [java]백준 ??! 10926번 (0) 2023.03.19 [java]백준 그대로 출력하기 11718번 (0) 2023.03.18 [java]백준 합 8393번 (0) 2023.03.17