using namespace std;
int main() {int arr1[20] = {0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1};int arr2[10] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29};int product = 1;
}
using namespace std;
int main() {
cout << "Массив arr1:" << endl;int arr1[20] = {0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1};
int arr2[10] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29};
int product = 1;
for (int i = 0; i < 20; i++) {
cout << arr1[i] << " ";
if (arr1[i] < 10) {
arr1[i] = 0;
}
}
cout << "\n\nМассив arr1 после изменений:" << endl;
for (int i = 0; i < 20; i++) {
cout << arr1[i] << " ";
}
for (int i = 0; i < 10; i++) {
product *= arr2[i];
}
cout << "\n\nПроизведение чисел в массиве arr2: " << product << endl;
return 0;
}