#include<stdio.h> int main() { int i; for(i=1;i<=100;i++) if(i%7==0) printf("%d\n",i); return 0; } 运行程序: