Guest User

Untitled

a guest
Feb 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <conio.h>
  4.  
  5. using namespace std;
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9. int n1;
  10. int n2;
  11. cout << "Ingresa el primer numero: ";
  12. cin >> n1;
  13. cout << "Ingrese otro numero: ";
  14. cin >> n2;
  15.  
  16. if(n1==n2)
  17. cout<<"Los numeros son iguales" <<endl;
  18. else
  19. if (n1>n2)
  20. cout<<n1<<" es mayor que: " <<n2 <<endl;
  21. else
  22. cout <<n2 <<" es mayor que: " <<n1 <<endl;
  23.  
  24. getch();
  25. return EXIT_SUCCESS;
  26. }
Add Comment
Please, Sign In to add comment