#include #include #define M 20 #define N 10 using namespace std; int main(int argc, char *argv[]) { int A[M] = {0}, B[N] = {0}; for(int i = 0; i < M; i++) {cout<<"A["<>A[i]; } for(int i = 0; i < M; i++) B[A[i]]++; int max=B[0], code=0; for(int i = 0; i < N; i++) if (B[i]>max) {max=B[i]; code=i; } cout<<"Rating"<<"\t"<<"Frequency"<