include <stdio.h>int main(int argc, char *argv[]){ int i, count = 0; for(i = 1; i <= 200; i++) { if (i % 2 == 1 && i % 3 == 1 && i % 5 == 1) { printf("%d\n", i); count ++; if (count == 10) { break; } } ...
include <stdio.h> int main(){ int x = 1;int c = 0;while (c < 10){ if (x % 3 == 2 && x % 5 == 4 && x % 7 == 3){ printf("满足条件的第%d个数:%d\n",++c, x);} ++x;} return 0;}
呵呵,比一楼快7倍 int main(void){ int i;for(i=7;i<100;i+=7)if(i%3==2) printf("%d ",i);printf("\n");scanf("%*c");return 1;}