SWEA

[SWEA] 큰 놈, 작은 놈, 같은 놈

itsnot4me 2024. 9. 12. 21:26
import java.util.Scanner;
import java.io.FileInputStream;
class Solution
{
	public static void main(String args[]) throws Exception
	{
		Scanner sc = new Scanner(System.in);
		int T;
		T=sc.nextInt();


		for(int test_case = 1; test_case <= T; test_case++)
		{
            int a = sc.nextInt();
            int b = sc.nextInt();
			if(a > b){
                System.out.println("#" + test_case + " >");
		}
            else if(a < b){
                System.out.println("#" + test_case + " <");
		}
            else if(a == b){
                System.out.println("#" + test_case + " =");
		}
	}
 }
}

'SWEA' 카테고리의 다른 글

[SWEA] 자릿수 더하기  (0) 2024.09.13
[SWEA] 중간 값 구하기  (0) 2024.09.12
[SWEA] 최대수 구하기  (0) 2024.09.12
[SWEA] 평균값 구하기  (0) 2024.09.12
[SWEA] 홀수만 더하기  (0) 2024.09.12