Hello!
I have b in main, have to find in the Prime function 5 prime numbers bigger than b, fill array_f[5] with them, and count m, as average value of all the array_f elements.
int Prime (int array_f[5], int st) {
do
{
int e=1;
for (int i=2;i<st;i++){
if (st%i==0)
{
e=0;
break;
}
}
if(e==1){array_f[i]=st;}
st+=1;
}
while(a<6);
}
m=(array_f[0]+array_f[1]+array_f[2]+array_f[3]+array_f[4])/5;
return m;
int main(){
int b=23;
cout<<Prime(b);
return 0;
}