输出100内被3整除个位数为6
#include<stdio.h> int main() { int i; for(i=1;i<100;i++) if(i%3==0&&i%10==6) printf("%d\n",i); }