#include <stdio.h>
void Swap(int a[],int n,int *odd,int *even)//将奇数放前面,偶数放后面
{
int low = 0,high = 9,t,k = 0,b = 0;//k记录奇数个数,b记录偶数个数
while(low <= high)
{
while(a[low] % 2 == 1) low++,k++;
while(a[high] % 2 == 0) high--,b++;
if(low < high)
{
t = a[low];
a...