Advertisement
idsystems

CPP_Practica36 - Maximos

Jan 30th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. // Program: max.cc
  2. // Author:  Yoan Pinzon
  3. // Date:    Agosto 30, 2006
  4.  
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11.    int x, y;
  12.  
  13.    cout << "Maximo" << endl << "======" << endl;
  14.  
  15.    cout << "Entre un numero = "; cin >> x;
  16.    cout << "Entre otro numero = "; cin >> y;
  17.  
  18.    if( x > y )
  19.    {
  20.       cout << "El numero " << x << " es mayor o igual que " << y << endl;
  21.    }
  22.    else
  23.    {
  24.       cout << "El numero " << y << " es mayor o igual que " << x << endl;
  25.    }
  26.  
  27.    return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement