打印1-100之间不能被2整除的数
let i =1
for (let i = 1; i <= 100; i++) {
if( i % 2 ==1 ){
console.log(i)
}
}
打印1-100之间不能被3整除的数
let a = 1
for (let a=1; a<=100; a++) {
if(a % 3 !=0){
console.log(a)
}
}
或
let b = 1
for (let b=1; b<=100; b++) {
if(b % 3 ==1 || b % 3 ==2){
console.log(b)
}
}