谢谢大家了~~~

2006-03-11 15:35
#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]);
}
呵呵
2006-03-16 16:18
2006-03-16 17:31
2006-03-19 20:44
2006-03-19 20:52
2006-03-19 21:15

2006-03-20 12:32