fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. float temp[31][24];
  6. float max = -100;
  7.  
  8. for (int day = 0; day < 31; day++)
  9. for (int hour = 0; hour < 24; hour++)
  10. if (temp[day][hour] > max)
  11. max = temp[day][hour];
  12. cout << "The highest tempeture was " << max << endl;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5328KB
stdin
Standard input is empty
stdout
The highest tempeture was 2.31346e+31