#include <iostream>
using namespace std;
signed main() {
int arr[10] = {1,2,3,4,5,6,7,8,9,10};
int temp;
cout << arr[0] << " " << arr[4] << endl;
temp = arr[0];
arr[0] = arr[4];
arr[4] = temp;
return 0;
}
#include <iostream>
using namespace std;
signed main() {
int arr[10] = {1,2,3,4,5,6,7,8,9,10};
int temp;
cout << arr[0] << " " << arr[4] << endl;
temp = arr[0];
arr[0] = arr[4];
arr[4] = temp;
cout << arr[0] << " " << arr[4] << endl;
return 0;
}