谢谢大家了~~~
#include <stdio.h>
void main()
{
int a[10];
int i;
int temp;
printf ("Please enter ten number:\n");
for (i=0;i<10;i++)
scanf("%d",&a[i]);
for (i=0;i<10;i++)
if(a[i]>a[i+1])
{
temp=a[i];
a[i]=a[i+1];
a[i+1]=temp;
}
printf ("The right order is:\n");
printf ("%d\n",a[9]);
}
呵呵