You are on page 1of 1

Alysza Ashley M.

Daep AMACC BIÑAN


20000511010 Computer Programming 1

Practice Lab Activity #5


#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];
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;
}

You might also like