public class AverageSpeed{
public static void main(String[]args){
double speedkm =60/(45.5/14);
double speedm = speedkm /1.6;
system.out.println(“averagespeed = ”+speedm + "m/h")
}
以公里计的平均速度
原文:http://www.cnblogs.com/zr1636050087/p/7501979.html