错在哪 求 解!
#include <stdio.h>
int main()
{
int a[10] = {0};
for (int i = 0; i < 10 , i++)
{
a[i] = arc4random()%50;
printf ("%d",a[i]);
}
for (int i = 0; i < 10-1 ;i++ )
{
for(int j = 0;j< 10-1-i ;j++)
{
if(a[j] > a[j+1])
{
int temp = a[j];
a[j] = a[j+1];
a[j+1] = temp ;
}
}
}
printf ("\n");
for (int i = 0;i < 10 ;i++)
{
printf("%d",a[i]);
}
}
return 0;
}