返回列表 發帖
  1. import java.util.Scanner;
  2. public class Dc
  3. {
  4.   public static void main(String args[])
  5.   {
  6.     Scanner a=new Scanner(System.in);
  7.     int x,y;
  8.     System.out.println("請輸入分子x");
  9.     x= a.nextInt();
  10.     System.out.println("請輸入分母y");
  11.     y= a.nextInt();
  12.     System.out.print("x/y="+(x/y));
  13.   }
  14. }
複製代碼

TOP

返回列表