#include
using namespace std;
int main(){
int a[5];
int n; int i;
for ( n=0;n<5;n++){
cin>>a[n];
}
cout <<“逆序输出”<<endl;
for (i=n-1;i>=0;i–){
cout <<a[i] ;
cout<<" ";
}
return 0;
}
#include
using namespace std;
int main(){
int a[5];
int n; int i;
for ( n=0;n<5;n++){
cin>>a[n];
}
cout <<“逆序输出”<<endl;
for (i=n-1;i>=0;i–){
cout <<a[i] ;
cout<<" ";
}
return 0;
}