#include<iostream> using namespace std; int main () { int a[10],i; for(int i=0;i<10;++i) { cout<<"enter the enteger"<<endl; cin>>a[i]; } cout<<"the array in actual order"<<endl; for(int i=0;i<10;++i) cout<<a[i]<<" "; cout<<"the array in reverse order"<<endl; for(int i=9;i>0;--i) cout<<a[i]<<" "; }
C++ Reverse Order Array Print
Post A Comment:
0 comments: