#include
#define N 10
void main() { int a[N],i,max,min,a3,a5,a7; float av;
for ( i=0;i max=min=a[0]; for ( i=1;i a3=a5=a7=0; av=0; for ( i=0;i av+=a[i]; if ( a[i]%3==0 ) a3++; if ( a[i]%5==0 ) a5++; if ( a[i]%7==0 ) a7++; } for ( i=0;i av/=N; printf("%d %d %f\n",max,min,av); printf("%d %d %d\n",a3,a5,a7); }
#include