Guest User

Untitled

a guest
Jul 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main()
  4. {
  5. char taba[180];
  6. char tab[180];
  7.  
  8.  
  9. while(~scanf("%s %s", taba, tab))
  10. {
  11. if (taba,tab>1){
  12. if (taba[0] < tab[0])
  13. printf("%s %s\n",taba,tab);
  14.  
  15. else if (taba[0] == tab[0])
  16. printf("%s %s\n",taba,tab);
  17. else
  18. printf("%s %s\n",tab,taba);
  19.  
  20. }
  21. }
  22. return 0;
  23. }
Add Comment
Please, Sign In to add comment