

입출력과 사칙연산을 마무리짓고, 조건문으로 넘어왔습니다.
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 {
System.out.println("==");
}
}
}'백준 문제풀이 > 조건문' 카테고리의 다른 글
| 2525. 오븐 시계 (0) | 2022.09.11 |
|---|---|
| 2884. 알람 시계 (0) | 2022.09.11 |
| 14681. 사분면 고르기 (0) | 2022.09.11 |
| 2753. 윤년 (0) | 2022.09.11 |
| 9498. 시험 성적 (0) | 2022.09.11 |