返回列表 發帖
  1. import java.util.Scanner;


  2. public class Ch50 {

  3.         public static void main(String[] args) {
  4.                 Scanner s=new Scanner(System.in);
  5.                 int x,y;
  6.                 System.out.print("請輸入x: ");
  7.                 x=s.nextInt();
  8.                 System.out.print("請輸入y: ");
  9.                 y=s.nextInt();
  10.                 System.out.println("x/y="+x/y);
  11.         }

  12. }
複製代碼

TOP

返回列表