C++ Program to Reverse the given array values

C++ Program to Reverse the given array values


#include
int main()
{
int a[10],i;
cout<<"enter the array:";
for(i=0;i<10;i++)
{
cin>>a[i];
}
cout<<"reverce array is:";
for(i=9;i>=0;i--)
{
cout<<a[i]<<"\n";
}
return0
}



No comments:

Post a Comment