Сделайте так чтобы в коде вместо (cin) and (cout) было printf() and scanf()пжж
#include
#include
using namespace std;
int main()
{

int n, i, m, mi;

cin >> n;

int a[n];

srand((unsigned)time(NULL));

for (i=0; i
{

a[i]=rand()%100;

cout << a[i] << " ";

}

cout << "\n";

m=a[0];

mi=0;

for(i=0;i
{ if(m
{ m=a[i];

mi=i;

}

}

for(i=1;i
a[i]=a[i]*m;

cout << "max element a[" << mi << "]=" << m << "\n";

for (i=0; i
cout << a[i] << " ";

return 0;

}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2025 SCHOLAR.TIPS - All rights reserved.