Use an array to solve the following problem:
Read in 5 numbers. As each number is read, display it only if it is not a duplicate of a number that has already been read (i.e. it's unique). Provide for all cases including 5 unique numbers and just 1 unique number. Use the smallest possible array to solve this problem.