Advertisement
oriolmarti97

[X60048] Order two strings

Apr 30th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     string s, t;
  8.     while (cin >>s>>t) {
  9.         if (s<t) cout <<s<<' '<<t<<endl;
  10.         else cout <<t<<' '<<s<<endl;
  11.     }
  12. }
  13.  
  14. //By Patata
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement