0
Eof error
why im i getting an eof error on the sololearn app when i run this code but on the pc it kinda loops till i end the program https://code.sololearn.com/cznypLMEPq05/?ref=app
7 ответов
+ 5
Here you go.
So your inputs will be:
45 {enter}
90 {enter}
0 {enter}
end
https://code.sololearn.com/cP3J3uWFeDHN/?ref=app
+ 4
So your program has a while(true) loop.
On desktop you can get multiple inputs only by pressing enter.
But on Sololearn you need to tell your program to only get a certain amount of inputs because it does not like looping forever.
On Sololearn it works like this:
Yoi send it one request, and it send one piece of data back, end.
On your computer:
You send one request, it sends one piece of data back, then it waits for another request.
+ 4
Give it a ✔ if you're happy 😉
+ 3
You'll need to make an if statement that checks a specific input.
+ 1
thanks limitless 👍👍
+ 1
sure ✔✔✔ hehe
0
thanks, so how do i make sololearn loop until i want it to stop?