a>b时,a÷b=c……d
a/b=c,a%b=d
a=b, a÷a=1.....0
a/a=1,a%a=0
a<b,a/b=0.xxx....a
a%b=a <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>for-loop</title>
</head>
<body>
<p>点击下面的按钮,利用循环弹出之间所有整数</p>
<button onclick="myFunction()">button</button>
<p id="demo"></p>
<script>
function myFunction(){
var x=0,i=0;
for(;i<=33;)
{
x=x + i +" ";
i++;
}
document.getElementById("demo").innerHTML=x;
}
</script>
</body>
</html> 学习了{:10_333:} 各种语言的99乘法表记忆在攻击我
页:
[1]