- import java.util.Scanner;
- public class World {
- public static void main(String[] args) {
- // TODO 自動產生的方法 Stub
- int a ,b;
- Scanner c=new Scanner(System.in);
- System.out.println("請輸入a:");
- a=c.nextInt();
- System.out.println("請輸入b:");
- b=c.nextInt();
- if(a<b)
- System.out.println(a+"<"+b);
- else if(a>b)
- System.out.println(a+">"+b);
- else
- System.out.println(a+"="+b);
- }
- }
複製代碼 |