title: How to not allow duplicate values into an array?
body: <p>My question is how would I not allow duplicate values into an array? For example I have a program that is supposed to take five user input values that are between 10 and 100, and put them into an array. Also it is supposed to tell if the value the user is imputing currently is a duplicate to one found in the array currently. If so it is not supposed to record the value, and at the end of five inputs it is supposed to output the array with only unique values. So for example is the user input: 12, 16, 30, 30, 99, the end output would be: 12, 16, 30, 99. How would I eliminate the duplicates?</p>