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