알고리즘/백준(backjoon)
[Baekjoon]백준 NO.1330 - 두 수 비교하기 / Java(자바)
씨네
2021. 4. 25. 09:09
728x90
드디어 IO가 끝나고 이제 if문으로 넘어왔다...
if문 첫문제는 간단하게 크고 작은것을 구하는 문제이다.
//No.1330
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();
if(A > B) {
System.out.println(">");
}else if(A < B) {
System.out.println("<");
}else if(A == B) {
System.out.println("==");
}
sc.close();
}
}
728x90