Advertisement
Guest User

Komor Romok

a guest
Feb 27th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. int main()
  6. {
  7. char line[15];
  8. int i;
  9. for(;;)
  10. {
  11. gets(line);
  12. if(strcmp(line,"THE END")==0)
  13. break;
  14. else
  15. {
  16. for(i=strlen(line)-1;i>=0;i--)
  17. printf("%c",line[i]);
  18. printf("\n");
  19. }
  20.  
  21. }
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement