Advertisement
Guest User

Untitled

a guest
Aug 19th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5.     int c;
  6.     while ((c = getchar()) != EOF) {
  7.         if (c == '\t')
  8.             printf("\\t");
  9.         else if (c == '\b')
  10.             printf("\\b");
  11.         else if (c == '\\')
  12.             printf("\\\\");
  13.         else
  14.             putchar(c);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement