C语言错误问题
#include "stdio.h"main()
{int i,j,p,q,s,a[10];
for (i=0;i<10;i++)
{(printf("输入第%d个数字:\n",i+1);
scanf("%d",&a[i]);}
for (i=0;i<10;i++)
{p=i;q=a[i];
for (j=i+1;j<10;j++)
if (a[j]>q)
{s=a[j];
a[j]=q;
q=s;}
}printf("这几个数从大到小排列为:\n");
printf("%d",a[i]);
}
此程序错在何处?