백준 1001번 자바 JAVA 풀이


백준 1001번 자바 JAVA 풀이

https://www.acmicpc.net/problem/1001 1001번: A-B 두 정수 A와 B를 입력받은 다음, A-B를 출력하는 프로그램을 작성하시오. www.acmicpc.net 이전에 풀었던 A+B 문제와 99퍼센트 같은 코드를 가지고 있다. 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); sc.close(); } } 이 코드가 정답이다. System.out.println(a-b); System.o..


원문링크 : 백준 1001번 자바 JAVA 풀이