01: #include <iostream>
02: using namespace std;
03: 
04: int main()
05: {  double next;
06:    double highest;
07: 
08:    cout << "Please enter the temperature values:\n";
09:    if (cin >> next) highest = next;
10:    else
11:    {  cout << "No data!\n";
12:       return 1;
13:    }
14:    while (cin >> next)
15:      if (next > highest) highest = next;   
16: 
17:    cout << "The highest temperature is " << highest << "\n";
18:    return 0;
19: }