CODING TEST/Baekjoon2 [백준/자바] 1330번_입력받은 두 수를 비교하기 import java.util.Scanner; public class no_1330 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); if(a > b) { System.out.println(">"); }else if(a < b) { System.out.println(" 2021. 12. 31. [백준/자바] 2558번_입력값 받아 사칙연산하기 # Scanner. nextInt() 활용 # no.1000 import java.util.Scanner; public class no_1000 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); System.out.println(a+b); } } # no.1001 import java.util.Scanner; public class no_1001 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextIn.. 2021. 12. 31. 이전 1 다음