返回列表 發帖
  1. import java.io.Console;
  2. public class Ch01
  3. {
  4.     public static void main(String args[])
  5.     {
  6.         Console c=System.console();

  7.         int x,y;

  8.         x=Integer.parseInt(c.readLine("輸入x值: "));
  9.         y=Integer.parseInt(c.readLine("輸入y值: "));

  10.         if(x>y)
  11.         {
  12.              System.out.println("x>y");
  13.         }else if(x<y)
  14.         {
  15.              System.out.println("x<y");
  16.         }else
  17.              System.out.println("x=y");
  18.     }
  19. }
複製代碼
巨槌瑞斯!!!誇爪!!!哈哈哈哈!!!
還敢下來阿冰鳥

TOP

返回列表