
Student: RussellLowke
    T.F: Francis Crick
Unit Two, pencil-and-paper - question 1 [worth 2pts],  7/1/2002

Write a C++ program fragment that prints the second-largest value
contaioned in variables I, J, K, and L.  Assume that the four variables
have already been declared.  Try to use as few statements as possible.

____


    int highest = I,
        secondHighest;
    
    if (highest < J) {
        secondHighest = highest;
        highest = J;
    }
    
    if (highest < K) {
        secondHighest = highest;
        highest = K;
    }
    
    if (highest < L) {
        secondHighest = highest;
        highest = L;
    }

    cout << "Second Highest:" << secondHighest << endl;