Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <conio.h>
  2. #include <iostream>
  3.  
  4. using std::cout;
  5. using std::endl;
  6. using std::cin;
  7.  
  8.  
  9. int main()
  10. {
  11. int van, ty;
  12. cout << "enter first number:\n";
  13. cin >> van ;
  14. cout << "enter second number:\n";
  15. cin >> ty ;
  16.  
  17. if(van < ty){cout << ty << " more than " << van;};
  18. if(van > ty){cout << van << " more than " << ty;};
  19. if(van = ty){cout << van << " = " << ty;};
  20.  
  21.  
  22. _getch();
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement