Read an integer N. This number indicates how many values the array will have.
Then, read N integers (one per line) and store them in an array.
Finally, display only the numbers that appear exactly once in the array, in the original order.
Hints:
for loop to read the data and store it in the array.for loop to count how many times that number appears in the array.An integer N, followed by N integers, one per line.
Print the numbers that appear exactly once, one per line, in the original order.
Input:
6
3
5
3
7
5
1
Output:
7
1