본문 바로가기
코딩테스트/백준

Java - 백준 코딩테스트 1001번 [입출력과 사칙연산 - A - B]

by sycareer 2021. 6. 24.

1
2
3
4
5
6
7
8
9
10
11
12
import java.util.Scanner;
 
public class AminusB {
    //1001번
    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);
    }
 
}
cs