题解 | #判断两个数的大小关系#
判断两个数的大小关系
http://www.nowcoder.com/practice/f05358b9e8164b27871c87d3097f4dab
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while(scan.hasNextInt()) {
int num1 = scan.nextInt();
int num2 = scan.nextInt();
if(num1 < num2) {
System.out.println(num1 + "<" + num2);
} else if(num1 > num2) {
System.out.println(num1 + ">" + num2);
} else {
System.out.println(num1 + "=" + num2);
}
}
}
}