//第一次尝试:#include<stdio.h> int main(){ for (int i = 1; i < 101; i++){ if (i % 3 ==0){ printf("%d ", i); } } return 0; }//此代码比较简短,比较简单。