OK so ive been given the task of inputting 10 numbers into an array, making sure that there are at least 2 repeating ones,
for example 1,5,6,6,10,3,5,2,7,8 (6 and 5 repeat)
Having done this, i am to then write a program that sorts them from lowest to highest and eliminates the unnecessary repeating number, so the program would spit out:
1,2,3,5,6,7,8,10 (from the above input)
I havent the slightest clue where to even begin, because the fact that we have to eliminate repeating numbers completley voids the way i was taught to sort arrays.
Any help would be much appreciated,