#include <iostream>
int countNumbersInRange(int array[], int n){
int count = 0;
for (int i = 0; i < n; i++){
if (array[i] >= -10 && array[i]<=10){
count++;
}
}
return count;
}
int main()
{
int arr[] = {1,5,10,13,156,-10,-13,-16,-3,0};//przykładowa tablica
std::cout << countNumbersInRange(arr,10);
}