IlincaMuresan

ordine crescatoare lungime

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