Question I of LabTest II

Write a small program (can be just a main program without any functions) that reads the standard input and copies what it reads to the output so that is it a valid C string constant. In other words if it reads in the string

EECS 2031
Linux and C
it produces:
"EECS2031\n\
Linux and C"
In other words it replaces new lines with \n\ followed by a new line. It also replaces double quotes with backslash followed by double quotes.