27. To display the array elements in reverse order Array elements 58 35 78 22 46 Reverse order 35 58 46 22 78.
Answers
Answered by
0
Answer:
include<iostream>
using namespace std;
int main()
{
int arr[10], i;
cout<<"Enter 10 Array Elements: ";
for(i=0; i<10; i++)
cin>>arr[i];
mark me brainliest
cout<<"\nThe Original Array is:\n";
for(i=0; i<10; i++)
cout<<arr[i]<<" ";
cout<<"\n\nThe Reverse of Given Array is:\n";
for(i=(10-1); i>=0; i--)
cout<<arr[i]<<" ";
cout<<endl;
return 0;
}
Explanation:
Similar questions