Pop_Flaviu

19.11.2019-Pb1

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