Nistor_Ariana

Untitled

Nov 19th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. using namespace std;
  4. char x[100],y[100];
  5. int main()
  6. {
  7. cin>>x>>y;
  8. if(strlen(x)>strlen(y))
  9. {
  10. cout<<y<<endl;
  11. cout<<x;
  12. }
  13. else
  14. {
  15. cout<<x<<endl;
  16. cout<<y;
  17. }
  18. }
Add Comment
Please, Sign In to add comment