https://www.acmicpc.net/problem/1330
1330번: 두 수 비교하기
두 정수 A와 B가 주어졌을 때, A와 B를 비교하는 프로그램을 작성하시오.
www.acmicpc.net
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int numA = sc.nextInt();
int numB = sc.nextInt();
System.out.println( numA > numB ? ">" : numA < numB ? "<" : "==" );
}
}
'Algorithm > Baekjoon' 카테고리의 다른 글
백준(2739번) - 구구단 (0) | 2021.07.04 |
---|---|
백준(9498번) - 시험 성적 (0) | 2021.06.10 |
백준(14681번) - 사분면 고르기 (0) | 2021.06.10 |
백준(2753번) - 윤년 (0) | 2021.06.10 |
백준(9498번) - 시험 성적 (0) | 2021.06.10 |