int main(){ setlocale(LC_ALL, "Ru"); srand(time(0)); int *nume = new int[501]; int max = nume[0]; int i = 0,k=0,sa=0,help=0; for (i; i < 501; i++) { nume[i] = (-1 - rand()%10); cout << i<<" = "<< nume[i] << endl; k++; sa += nume[i]; help = sa / k; if (nume[i]>max) { max = nume[i]; } } cout << endl; cout << "СУММА ЭЛЕМЕНТОВ: "<<sa<<endl; cout << "СР. АРИФМ: "<< help<<endl; cout << "МАКСИМАЛЬНОЕ: " << max; cout << endl; delete[] nume; system("pause"); return 0;}