满意答案
singoboss
2013.06.16
采纳率:57% 等级:11
已帮助:3587人
先输入,然后逆序存放,再输出、#include"stdio.h"#define N 10void input(int b[],int length);
void Flag(int a[],int length);void main()
{
int a[N],i;
input(a,N);
Flag(a,N);
for(i=0;i
{
printf("%d ",a[i]);
}
}void input(int b[],int length)
{
int i;
printf("Input 10 numbers :");
for(i=0;i
{
scanf("%d",&b[i]);
}
}void Flag(int a[],int length)
{
int flag,i;
for(i=0;i
{
flag=a[i];
a[i]=a[length-1-i];
a[length-i-1]=flag;
}
}
02分享举报