코딩 테스트/Python - 백준 단계별로 풀어보기
백준 자바 1001번 - 두 정수 A와 B를 입력받은 다음, A-B를 출력하는 프로그램을 작성하시오.
kms152000
2024. 4. 3. 02:23
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int A = scanner.nextInt();
int B = scanner.nextInt();
System.out.print(A-B);
}
}