백준 10869번 자바 JAVA 풀이


백준 10869번 자바 JAVA 풀이

https://www.acmicpc.net/problem/10869 10869번: 사칙연산 두 자연수 A와 B가 주어진다. 이때, A+B, A-B, A*B, A/B(몫), A%B(나머지)를 출력하는 프로그램을 작성하시오. www.acmicpc.net 이번 문제는 출력값을 한 화면에 띄우는 문제다. import java.util.Scanner; public class Main { 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); System.out.println(a-b); System.out.pr..


원문링크 : 백준 10869번 자바 JAVA 풀이