//输出100以内(不含100)能被3整除的所有整数 #include<stdio.h> main() { int i; i=1; while(i<=100) { if(i%3==0) printf("%5d",i); i++; } }