+ 5
Why it shows error???
I have learned this online but shows some error here can anyone explain why???? https://code.sololearn.com/cB04lbxwh09y/?ref=app
2 Antworten
+ 4
because sololearn does not support multiple inputs. that's why this gives you a error.
+ 1
your program is correct...you used while loop so it will continue need input which you haven't given. to avoid eof error remove while true then it will works fine for single input otherwise you have to provide input till the condition meet which is breaking the loop.