#include <iostream>
int main() {
const int arraySize = 5;
int myArray[arraySize] = {1, 2, 3, 4, 5};
int newValue = 6;
// Print the original array
std::cout << "Original Array: ";
for (int i = 0; i < arraySize; ++i) {
std::cout << myArray[i] << " ";
}
std::cout << std::endl;
// Add a new value to the array
myArray[arraySize - 1] = newValue;
// Print the modified array
std::cout << "Modified Array: ";
for (int i = 0; i < arraySize; ++i) {
std::cout << myArray[i] << " ";
}
std::cout << std::endl;
return 0;
}