Advertisement
Miraziz

Untitled

Mar 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int in;
  5.     while ((in = getchar()) != EOF)
  6.         {
  7.             if (in == '\t') printf("\\t ");
  8.             else if (in == '\n') printf("\\n ");
  9.             else if (in == '\v') printf("\\v ");
  10.             else putchar(in);
  11.         }
  12.     printf("\n");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement