Menu Close

Find the largest hexadecimal number

Fazil frequently uses Hexadecimal notation in his work.

In hexadecimal notation, besides the ten digits 0, 1, …9 the six letters A, B, C, D, E and F are used to represent the values 10, 11, 12, 13, 14, …15 respectively.

In this problem, you are given two letters X and Y.

When X and Y are seen as hexadecimal numbers, which is larger?

Input:
The input is given X Y

Output:
X is smaller, print <
Y is smaller, print >
they are equal, print =.
#include <stdio.h>
int main()
{
    char X,Y;
    scanf("%c %c",&X,&Y);
    int a,b;a=(int)(X);b=(int)(Y);
    if(a==b){printf("=");}
    else{ a>b?printf(">"):printf("<");}
	return 0;
}

INPUT_1:
E  C

OUTPUT:
 >


INPUT_2:
F  F

OUTPUT:
 =



Morae! Q