Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main(int argc, char *argv[])
- {
- int n1;
- int n2;
- cout << "Ingresa el primer numero: ";
- cin >> n1;
- cout << "Ingrese otro numero: ";
- cin >> n2;
- if(n1==n2)
- cout<<"Los numeros son iguales" <<endl;
- else
- if (n1>n2)
- cout<<n1<<" es mayor que: " <<n2 <<endl;
- else
- cout <<n2 <<" es mayor que: " <<n1 <<endl;
- getch();
- return EXIT_SUCCESS;
- }
Add Comment
Please, Sign In to add comment