blob: baf7835eca535065a5564fffd23be6e72d63261c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <stdio.h>
int
main (int argc, char* argv[]) {
char c;
while ((c = getchar()) != EOF) {
switch (c) {
case '\n': puts("\\n"); break;
case '\\': puts("\\\\"); break;
default: printf("%c\n",c); break;
}
}
}
|