#include "iostream"
#include "cstdlib"
#include "ctime"
using namespace std;
void z(int *m, int n, int a, int b){
srand(time(NULL)); for(int i=0;i< n;i++)m[i]=a+rand()%(b-a+1);}
int k(int *m, int n, int a, int b){
int s=0; for(int i=0;i< n;i++)s+=m[i]>=a&&m[i]<=b; return s;}<br>int main(){
int n,a,b,na,nb; cout<<"n: "; cin>>n; int *m=new int[n];
cout<<"a b: "; cin>>a>>b; z(m,n,a,b);
for(int i=0;i< n;i++)cout<<m[i]<<' '; cout<< endl; <br>cout<<"number_A number_B: "; cin>>na>>nb; cout<<"k="<< k(m,n,na,nb); <br>delete []m; cout<<"\nPress Enter for exit\n"; cin.get(); cin.get();}</span>