+ 4

How do I take more than one input of integer?

I have this code right here https://code.sololearn.com/cm6PokY5Jus8/?ref=app And I don't know how to make it work. I think the other part of the code work just fine, the problem is mostly on line 13 (maybe?)

20th Mar 2019, 6:39 AM
martabakkeju
martabakkeju - avatar
2 Answers
+ 6
You have to separate both the inputs the *enter* key, while executing the code in Code Playground. It seems you are just separating that with a space, in that case both the values will be stored in the first variable. And nothing will be left for the second variable, and this will raise an error.
20th Mar 2019, 6:43 AM
Letsintegreat
Letsintegreat - avatar
+ 3
So that's why. Thank you
20th Mar 2019, 6:56 AM
martabakkeju
martabakkeju - avatar