how to terminate string with eof? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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