Помогите, пжлст. Чем отличаются две нижние записи?

void DrawArray(int mas[10]) {
srand(time(0));
for (int i = 0; i <= 9; i++) {
mas[i] = (rand() % 61 + (-30));
cout << mas[i] << " ";
}

int CalculatorNegative(int mas[10]) {
int negative_elimenty = 0;
for (int i = 0; i <= 9; i++) {
if (mas[i] < 0) negative_elimenty += 1;
}
return negative_elimenty;
}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.