A-B(1001)
두 수를 입력받고 뺄셈을 한 결과를 출력하는 문제
문제
입력
출력
import java.util.Scanner;
public class Main {
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);
}
}Last updated