懵逼中!
a初值要为1,否则进不去循环了
#include<stdio.h> int main() { int a = 1; while(a >= 1 && a <= 100) { if(a % 3 == 0) printf("%d ",a); a++; } return 0; }