//mode of a set of integers #include using namespace std; int main() { int n = 15; int a[] = {1,6,0,2,0,0,3,6,3,0,1,0,3,2,0}; int mode = a[0], max = 1; for (int i = 0; i < n; ++i) { int count = 0; for (int j = 0; j < n; ++j) { if (a[j] == a[i]) ++count; } if (count > max) { max = count; mode = a[i]; } } cout<<"mode "<