The elements in the array before they are sorted: 45 9 23 100 90 6 86 17 3 5

 

After the elements are sorted: 3 5 6 9 17 23 45 86 90 100

 

Enter any number within the array: 17

 

The index for the element you entered is: 4

 

 

Press any key to close this window . . .