I have created a small C program which sorts odd and even numbers in descending order, with the user inputting whether they wish to sort the odd or the even numbers. So in order to try and make it more complex, I was wondering if there was a way in which I could have my program sort only the even numbers while leaving the odd numbers in their current place and vice versa so for instance:
Input:
odd
1 7 3 5 2 4 20
Output:
1 3 5 7 2 4 20
There is probably multiple ways to go about this, I'm wanting to include it in