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 + "时/公里");
}
}

 

posted on 2017-09-18 13:37  吕志远  阅读(56)  评论(0编辑  收藏  举报