import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int A, B;
A = in.nextInt();
B = in.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);
in.close();
}
}
'Playground > 자바문제집' 카테고리의 다른 글
[백준] 18108번 (0) | 2022.12.23 |
---|---|
[백준] 10926번 (0) | 2022.12.23 |
[백준] 1008번 (0) | 2022.12.23 |
[백준] 10998번 (0) | 2022.12.23 |
[백준] 1001번 (0) | 2022.12.23 |