返回列表 發帖
本帖最後由 李穎俊 於 2021-3-6 10:30 編輯
  1. import java.util.Scanner;


  2. public class JPA01 {
  3. public static void main(String[] args) {
  4.             Scanner s=new Scanner(System.in);
  5.                 System.out.print("Please input:");
  6.                 float a=s.nextInt();
  7.                 double b=2.20462;
  8.                 System.out.printf("%f kg = %f ponds",a,a*2.20462);
  9.        }
  10.       
  11. }
複製代碼

TOP

返回列表