elesis's haunt
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();
sc.close();
if( a>b ) {
System.out.print(">");
} else if( a<b ) {
System.out.print("<");
} else {
System.out.print("==");
}
}
}
'백준~문풀 후 최적화 추가~ > 단계별로 풀어보기' 카테고리의 다른 글
2753 윤년 (0) | 2021.04.15 |
---|---|
9498 시험 성적9498 시험 성적 (0) | 2021.04.14 |
2588 곱셈 (0) | 2021.04.14 |
10430 나머지 (0) | 2021.04.14 |
10869 사칙연산 (0) | 2021.04.14 |
Comments