I have two weeks, there is an exercise where the program has to say the lowest temperature and the highest of all that you have set, how would it be done? . Thank you.
#include<iostream>
using namespace std;
float t1,temperatura_media,t2,t3,t4;
int main(){
for(int x=0;x<1;x++){
cout<<"Pon la temperatura 00:00: ";cin>>t1;
cout<<"Pon la temperatura 06:00: ";cin>>t2;
cout<<"Pon la temperatura 12:00: ";cin>>t3;
cout<<"Pon la temperatura 18:00: ";cin>>t4;
}
temperatura_media= (t1+t2+t3+t4)/4;
cout<<"la temperatura media es: "<<temperatura_media<<endl;
return 0;
}