package Try;
public class AverSpeed {
public static void main(String[] args) {
System.out.println(14/1.6 / (45+30/60)/60 + "mph");//mph是英里每小时
}
}
输出
0.0032407407407407406mph
package Try;
public class AverSpeed {
public static void main(String[] args) {
System.out.println(14/1.6 / (45+30/60)/60 + "mph");//mph是英里每小时
}
}
输出
0.0032407407407407406mph