Advertisement
Spocoman

01. Order Two Numbers

Oct 25th, 2023 (edited)
872
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     int a, b;
  7.     cin >> a >> b;
  8.  
  9.     if (a < b) {
  10.         cout << a << " " << b << endl;
  11.     }
  12.     else {
  13.         cout << b << " " << a << endl;
  14.     }
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement