/* 4b. which is the highest average temperature of 3 consecutive days, and its first index ??? REWRITE BOTH, THE READ AND THE TASK ITSELF BY FUNCTIONS*/ #include #include using namespace std; int main() { const int max_v=30; float h[max_v]; int db; do { cout << "Nr. of data between: (1<=db<= "<>db; }while(db<=1 || db>=max_v); cout << "Give the values : " << endl; for(int i=0; i>h[i]; } int index=0; float s=h[0]+h[1]+h[2]; float aver=s/3; for(int i=0; i