Advertisement
Andr3i02

Untitled

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