
我想请问一下这个问题该怎么做 我写出来的代码运行结果是很多个数字8 不是正确的结果 不知道该怎么写 想让大家帮我解答一下疑惑


#include<stdio.h>
#include<math.h>
int main(){
int n ;
int a[100]= {0};
scanf("%d",&n);
for(int i = 0;i<n;i++){
scanf("%d",&a[i]);
}
for(int i = n-1;i>=1;i--){
printf("%d,",a[i]);
}
printf("%d",a[0]);
}
希望对你有用