老师,这样写可以吗?
来源:3-5 编程练习
视线模糊
2020-04-12 10:21:09
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>3-5编程练习算数运算</title>
</head>
<body>
<script type="text/javascript">
var x1=4;
var x2=5;
x3=x1+x2;
x4=x1-x2;
x5=x1*x2;
x6=x1%x2;
console.log(x3);
console.log(x4);
console.log(x5);
console.log(x6);
</script>
</body>
</html>
1回答
同学你好,代码没有问题。同学没有写相除运算。代码如下图:

如果我的回答解决了你的疑惑,请采纳!祝学习愉快!
相似问题