#include #include using namespace std; int main() { /* //1. Hanyszor fordult elo, hogy ket egymas utani napon az atlaghomerseklet tobb mint 10 fokot valtozott? const int max=30; int h[max]; int n; do { cout << "Adja meg a tomb elemszamat (1<=n<= "<> h[i]; } int db=0; for(int i=0; i10) db++; cout<> h[i]; } int db=0; int i=0; bool van=false; while (i<=n-2 && not van) { van=(h[i]<0 && h[i+1]<0 &&h[i+2]<0); ++i; } if(van) cout<<"Volt harom egymas utani fagyos nap! "<> h[i]; } int db=0; float osszeg=0; for(int i=0; i #include using namespace std; int main() { //Add meg a legmagasabb homersekletu nap sorszamat es a maximumot const int max=30; int h[max]; int i,n; do { cout << "Adja meg a tomb elemszamat (1<=n<= "<> h[i]; } int index=0; int maximum=h[0]; for(i=1;i