4-4交作业
来源:4-4 编程练习
陈小胖子
2018-11-14 10:44:55
function f() {
var input = prompt("请输入本次运动时间");
var time = "";
if (input > 20){
time = Math.ceil(input);
}else{
time = Math.floor(input);
}
document.write(time)
}
f();1回答
好帮手慕糖
2018-11-14
你好,实现效果没有问题,继续加油!欢迎采纳。
祝学习愉快!