作业:1.12假设一个跑步者1小时40分钟35秒 内跑了24英里。编写一个程序显示以每小时多少公里为单位的平均速度值(注意,1英里等于1.6公里。)

public class Demo_1

{
          public static void main(String[] args)

         {
               double V;
               V=(1.6*24)/(1+40/60+35/3600);
               System.out.println("The runner speed is" + V + "km/h" );
         }
}

原文地址:https://www.cnblogs.com/jingjing1314/p/7590262.html