标签:blog io for 2014 amp log on file
#include<stdlib.h> #include<conio.h> #include<stdio.h> void fun(int *a,int *n) { int i,j=0; for(i=0;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; system("CLS"); 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]); }
标签:blog io for 2014 amp log on file
原文地址:http://blog.csdn.net/u013116579/article/details/38621355