#include <iostream>
using namespace std;
int main()
{
int arr[] = {1,2,3,4,5,6,7};
int len = sizeof(arr)/sizeof(arr[0]);
for(int i = 0; i < len/2; i++)
{
int j = len - i -1;
int tmp = arr[i];
arr[i] = arr[j];
arr[j] = tmp;
}
for(int i = 0;i<len;i++)
{
cout<<arr[i];
}
cout<<endl;
return 0;
}
top of page
All of us do not have equal talent. But, all of us have an equal opportunity to develop our talents.
-A.P.J Abdul Kalam
bottom of page
Comments