'/n' should be '\n'


By using the wrong slash, you wrote a single character constant comprised of the characters '/' and 'n'.


You probably can trigger EOF by entering CTRL + D or CTRL + Z.