Test Program


TestProgram.cpp

Program listing

/************************************************************************
*                                                                       *
*   Test Program                                                        *
*                                                                       *
************************************************************************/

#include <iostream>
#include <string>

using namespace std;

int main() {
    int a = 10;
    int b = 20;
    if (a > b)
        cout << a << endl;
    else
        cout << b   << endl;
    
    return 0;
}

Sample run

20


Previous example
Next example

e-mail me at robbk@hsc.edu

This page was last modified on Thu Sep 9 10:38:18 1999 .

URL: http://people.hsc.edu/faculty-staff/robbk/Coms261/Examples/TestProgram.html

Return to Coms 261 home page