#include
#include
#include
using namespace std;
int main()
{
int ranmas[10] = {};
srand(time(NULL));
cout<<"original massiv:"<<endl;<br>for (int i = 0; i < 10; i++)
{
ranmas[i] =rand() % 41 - 20;
cout << ranmas[i]<<endl;<br> }
cout<<"final massiv:"<<endl;<br>for(int i=0;i<10;i++)<br>{
if (ranmas[i] % 2==0){ ranmas[i]=-9;}
}
for (int i = 0; i < 10; i++){ cout << ranmas[i]<<endl;}<br>return 0;
}