- 将磅转化成千克数
- 输入磅数转化成千克数并输出
- 1磅等于0.454千克
import java.util.Scanner;public class Pound_Into_Kg {public static void main(String[] args) {// TODO Auto-generated method stubScanner sc = new Scanner(System.in);System.out.print("Enter a number in pounds :");double pound = sc.nextDouble();double Kg;Kg = pound * 0.454;System.out.println(pound + " pounds is " + Kg + " Kilograms");}}