0

how to terminate string with eof?

So here is my program that takes in a string with line breaks and terminates with entering eof. but it doesnt run, can anyone help and explain what's wrong https://code.sololearn.com/cY3IvgFC57bQ/?ref=app

6th Apr 2018, 4:19 PM
Whiless
Whiless - avatar
2 Respuestas
+ 1
It runs perfectly. You only output the empty string you read at eof.
6th Apr 2018, 7:30 PM
John Wells
John Wells - avatar
0
you can enter input only once in here try it somewhere else
6th Apr 2018, 4:29 PM
‎ ‏‏‎Anonymous Guy