728x90
출처-https://www.acmicpc.net/problem/10869
728x90
import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int b=scan.nextInt();
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);
}
}
728x90
'Problem Solving > BOJ' 카테고리의 다른 글
[백준, BOJ 2588] 곱셈 (java) (0) | 2020.08.20 |
---|---|
[백준, BOJ 10430] 나머지 (java) (0) | 2020.08.20 |
[백준, BOJ 1008] A/B (java) (0) | 2020.08.20 |
[백준, BOJ 10998] AxB (java) (0) | 2020.08.20 |
[백준, BOJ 1001] A-B (java) (0) | 2020.08.20 |