void countvalue(int *a, int *n){int i,j;j=0;for(i=1;i<=1000;i++){if(i%7==0||i%11==0&&i%77!=0) {if(i%7==0) a[i]=i/7; else a[i]=i/11; j++;}n=j;return n;}