#define N 100 void main(){ int t[100]={0}; int data[N]; int max,pmax=0; for (int i=0;iscanf("%d",data[i]); t[data[i]]++; } max=t[0]; for (i=1;i<100;i++) if (maxmax=t[i]; pmax=i; } printf("The most frequent number is %d, it appears %d times.\n",pmax,max); }