实现英尺英寸的身高转换成厘米身高 例如5尺7寸=170CM 计算公式:(英尺+(英寸/12))*0.3048 ```java package hello; import java.util.Scanner; public class Inch { public static void main(String[] args) { // TODO Auto-generated method stub double foot =0; double inch =0; double shengao; Scanner in = new Scanner(System.in); foot= in.nextInt(); inch= in.nextInt(); shengao=((foot+(inch/12))*0.3048); System.out.print(shengao); } } ``` Loading... 实现英尺英寸的身高转换成厘米身高 例如5尺7寸=170CM 计算公式:(英尺+(英寸/12))*0.3048 ```java package hello; import java.util.Scanner; public class Inch { public static void main(String[] args) { // TODO Auto-generated method stub double foot =0; double inch =0; double shengao; Scanner in = new Scanner(System.in); foot= in.nextInt(); inch= in.nextInt(); shengao=((foot+(inch/12))*0.3048); System.out.print(shengao); } } ``` 最后修改:2019 年 12 月 31 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏