//Братишка, я тебе опять С++ принёс
#include
#include
using namespace std;
int main()
{
int n;
cout<<"Enter size of array\n";</em>
cin>>n;
int *arr = new int;
for(int i = 0;i
cin>>arr[i];
}
int counter_of_less_fortyfive = 0;
vectorseventyeight;
for(int i = 0;i
if(arr[i]<45){</em>
counter_of_less_fortyfive++;
}
if(arr[i]<78){</em>
seventyeight.push_back(arr[i]);
}
}
int summ_seventyeight = 0;
for(auto &i:seventyeight){
summ_seventyeight+=i;
}
float average_seventyeight = summ_seventyeight / seventyeight.size();
cout<<"Quantity of elements wich less then 45 is "<<counter_of_less_fortyfive<<endl;</em>
cout<<"Average of elements wich less 78 is "<<average_seventyeight;</em>
return 0;
}