Use a one-dimensional array to solve the following problem: Read in 20 numbers between 10
and 100 inclusive. As each number is read, validate it (be sure to be between 10 and 100) and
store it in the array only if it is not a duplicate of a number already read.
After reading all the values, display only the unique values that the user entered.
Sort the array using bubble sort and display the sorted array.
I have one question about this, how do I "read" numbers without using an array?
store it in the array only if it is not a duplicate of a number already read.
After reading all the values, display only the unique values that the user entered.
isn't the second sentence redundant?
if only non duplicates are stored,wouldn't the whole array be filled with unique numbers?