<script>
for (var i = 100; i <= 200; i++) {
if (i % 3 === 0 || i % 7 === 0) {
console.log(i);
}
}
</script>
用JS,打印100–200之间所有能被3或者7整除的数
最新推荐文章于 2022-07-27 17:29:52 发布
<script>
for (var i = 100; i <= 200; i++) {
if (i % 3 === 0 || i % 7 === 0) {
console.log(i);
}
}
</script>