标签:io for re c amp print include main
#include<stdio.h> void fun(int *a,int *n) { int i,j=0; for(i=1;i<=1000;i++) if((i%7==0||i%11==0)&&i%77!=0) a[j++]=i; *n=j; } void main() { int aa[1000],n,k; fun(aa,&n); for(k=0;k<n;k++) if((k+1)%10==0) {printf("%5d",aa[k]); printf("\n"); } else printf("%5d",aa[k]); }
标签:io for re c amp print include main
原文地址:http://blog.csdn.net/u013116579/article/details/38085641