// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
// Enter 2 numbers and compare them
// also print out the sum of the 2 numbers
#include
int question_and_read() ;
void compare( int a, int b ) ;
int sum ( int a, int b ) ;
int main()
{
int first_number = question_and_read() ;
int second_number = question_and_read() ;
cout << " your 1st number was " << first_number << endl ;
cout << " your 2nd number was " << second_number << endl ;
compare( first_number, second_number ) ;
cout << " The sum of the 2 numbers is " << sum( first_number ,second_number ) << endl ;
return 0 ;
}
int question_and_read()
{
int number = 0 ;
cout << " Please enter in a number : " << endl ;
cin >> number ;
return number ;
}
void compare( int a, int b )
{
if ( a < b )
cout << a << " is less than " << b << endl ;
else
if ( a > b )
cout << a << " is greater than " << b << endl ;
else
cout << a << " is the same as " << b << endl ;
}
int sum ( int a, int b )
{
return a + b ;
}
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)