#include #include using namespace std; void read(float v[], int &, int); int main() { int db; const int m_val=30; float data[m_val]; read(data, db, m_val); // the values in the array: for(int i=0; i>db; if(db<1 || db>m_val) cout<<" Not good! "<m_val); cout<<"please, give the values: "; for(int i=0; i>h[i]; cout<<" "; } }