How do i solve 'EOF Error when reading a line'? And where did i went wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i solve 'EOF Error when reading a line'? And where did i went wrong?

I'm trying to create a list of integers up till an integer that user wants and then remove some specific integers (also entered by the user). I ask the user to enter the no. of integers he wants to remove and remove them using a while loop. https://code.sololearn.com/cV4rdL0C1gl6/?ref=app

29th Sep 2017, 10:43 AM
Priyansh Jain
Priyansh Jain - avatar
4 Answers
0
you need to increment i variable at the end of the loop. the way you did, i is always == 1 try it :)
29th Sep 2017, 12:19 PM
LayB
LayB - avatar
0
yeah! i totally forgot about that! silly me!!
29th Sep 2017, 12:38 PM
Priyansh Jain
Priyansh Jain - avatar
0
thank you so much ^_^
29th Sep 2017, 12:43 PM
Priyansh Jain
Priyansh Jain - avatar
0
anytime ^^
29th Sep 2017, 12:44 PM
LayB
LayB - avatar