java练习---2

//程序员:罗元昊 2017.9.6
public class My{
       public static void main(String[] args){
              int a=35+100*60; //将跑步时间转化为秒
              double b=2.0*1.6; //将跑步路程转化为公里
              System.out.println("平均速度:"+ a/3600/b + "时/公里");
       }
}

原文地址:https://www.cnblogs.com/xiaoluohao/p/7502900.html