Why it shows error??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

8th Aug 2018, 5:43 PM
Saquib Imam
Saquib Imam - avatar
2 Answers
+ 4
because sololearn does not support multiple inputs. that's why this gives you a error.
8th Aug 2018, 6:39 PM
LONGTIE๐Ÿ‘”
LONGTIE๐Ÿ‘” - avatar
+ 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.
8th Aug 2018, 6:40 PM
$ยข๐Žโ‚น๐”ญ!๐จ๐“
$ยข๐Žโ‚น๐”ญ!๐จ๐“ - avatar