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