function getChuShu(n,s){var b = [];while(n){if((--n)%s === 0){b.push(n);}}return b;}var c = getChuShu(100,3);alert(c)
for(var i=1;i<100;i++){ if(i%3 === 0){ console.log(i); }}