2558번: A+B - 2
-
[백준 알고리즘] 2558번: A+B - 2 (I/O) - JavaAlgorithm 2021. 8. 12. 23:50
https://www.acmicpc.net/problem/2558 2558번: A+B - 2 첫째 줄에 A, 둘째 줄에 B가 주어진다. (0 < A, B < 10) www.acmicpc.net [간략한 풀이] - 입력과 출력만 해주면 되는 것이라 입출력문만 알면 작성 가능 입력: Scanner 사용 출력: System.out.println 사용 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import java.util.Scanner; //A+B - 2 public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B..