Print Friendly and PDF
#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]<<" ";
 }
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: