.
int NumNegative(int* arr, int n) { int s=0; for (int i=0;i<n; i++) { //ознака, за якою знаходиться кількість if(arr[i]<0){s++;} } return s; }