I have this homework question:

Write and test a program that read in n integers (max value for n is 20), each integer has 

a value between 0 and 100 inclusive. You program should then print out the unique values 

among the input numbers and the count of these values. 

Sample input:

```
Enter a the number of integers = 8
Enter 8 integers: 5 6 7 6  6 17 17 35

```

Sample output: 

```
Number 5: 1
Number 6: 3  
Number 7: 1 
Number 17: 2 
Number 35: 1

```

This is what I did:

```
#include<iostream>

using namespace std;

int main(){
  int a[20], n;

  cout<< "Please enter the number of integers= ";
  cin>> n;
  cout<<"Please enter"<< n<<" integers: ";

  for (int i=0; i<n; i++)
    cin >> a[i];

  for (int k=0; k< n; k++){
    int sum=0;
    for (int i=0; i< n; i++){
      if (a[i]==a[k])
        sum= sum+1;
    }

    cout<< "Number "<< a[k]<<" : "<< sum<< endl;
  }
}

```