JAVA练习2
时间:2017-09-17 21:48:36
收藏:0
阅读:239
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 + "时/公里");
}
}
原文:http://www.cnblogs.com/qxc81518/p/7537831.html
评论(0)