Guest User

Untitled

a guest
Apr 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int larger()
  6. {
  7.     int x,y;
  8.     cout << "Give me two integers and I'll tell you which is larger." << endl;
  9.     cin >> x >> y;
  10.     if (x > y)
  11.     cout << x << " > " << y << endl;
  12.     else if (x < y)
  13.     cout << y << " > " << x << endl;
  14.     else if (x = y)
  15.     cout << "They're the same fucking number." << endl;
  16. }
  17. int main()
  18. {
  19.     larger();
  20.     return 0;
  21. }
Add Comment
Please, Sign In to add comment