I need to write a program that reads in 20 numbers between 10 and 100 using a single-subscripted array and then as each number is read, print it only if it's not a duplicate of a number already read.
I can read in the numbers and initialize the element values in the array, but have no idea how to eliminate the dups when printing.
Our teacher said we could search the array and eliminate the dup and shift the next element up but she didn't tell us how to do that. I'm lost. We have learned binary search trees yet, just linear search and binary search.
I think I have to use a bunch of nested for loops, but can't get it.
A few hints please. Thanks