https://www.acmicpc.net/problem/10869
풀이
import java.util.Scanner;
public class bj10869 {
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.println(a*b);
System.out.println(a/b);
System.out.println(a%b);
}
}
'Algorithm > BOJ' 카테고리의 다른 글
[BOJ] 백준 10430(나머지) -Java (0) | 2022.06.23 |
---|---|
[BOJ] 백준 10926(??!) -Java (0) | 2022.06.23 |
[BOJ] 백준 1008(A/B) -Java (0) | 2022.06.23 |
[BOJ] 백준 10998(A x B) - Java (0) | 2022.06.23 |
[BOJ] 백준 1001(A-B) - Java (0) | 2022.06.23 |