改错题
#include "stdio.h"main()
{int i,j,p;
float s,q,a[10];
for (i=0;i<10;i++)
{printf("Input the %dth number:",i+1);
scanf("%f",&a[i]);}
for (i=0;i<10;i++)
{p=i;q=a[i];}
for (j=1;j<10;j++)
{if (q<a[j])
{p=j;q=a[j];}
if (i!=p)
{s=a[i];
a[i]=a[p];
a[p]=s;}
printf("%f\t",a[i]);
}
}