문제 링크
https://www.acmicpc.net/problem/10869
나의 코드 (java)
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a, b;
a = sc.nextInt();
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);
}
}
'코딩공부 > 백준 (java)' 카테고리의 다른 글
[백준 2588] 곱셈 (java) (0) | 2021.06.28 |
---|---|
[백준 10430] 나머지 (java) (0) | 2021.06.28 |
[백준 1008] A/B (java) (0) | 2021.06.28 |
[백준 10998] A×B (java) (0) | 2021.06.28 |
[백준 1001] A-B (java) (0) | 2021.06.28 |
댓글