+ 1
User's input after the program output
I cannot do the user's input in the Sololearn sandbox. The idea is: the program's output is two numbers (a+b and abs(a-b)). And user should input these two numbers (a and b). My ideas to do this are in the commented block. Please give any suggestions. Thank you. https://code.sololearn.com/cSC6T1xu42Bh/?ref=app
6 Respuestas
+ 1
Granger, initially I did not mean to do 10 times loop, only once.
Later I added this loop just for the teachers to generate numerous variants of the task for schoolchildren.
+ 1
Also the curious feature of the sandbox: even in the commented box it finds the input().
So I had to add # before input() to hide it completely.
0
codemonkey and Granger, thanks a lot.
Yes, I supposed the code will be functioning in any IDE.
So the principal problem is in the sandbox.