#include
using namespace std;
void print_array(int* array, int size)
{
for(int i = 0;i
{
cout << array[i] << "\t";</p>
}
cout << endl;</p>
}
int main(int argc, char** argv) {
int n;
cout << "Введите количество элементов в массиве: ";</p>
cin >> n;
int* array = new int[n];
int* copy = new int[n];
for(int i = 0;i
{
cout << "Введите элемент ["<< i <<"]: ";</p>
int number;
cin >> number;
array[i] = number;
if(number < 0)number = -number;
copy[i] = number < 10 ? number : 0;
}
cout << "До: ";</p>
print_array(array,n);
cout << "После: ";</p>
print_array(copy,n);
delete[] array;
delete[] copy;
return 0;
}