0

How do I make multiple inputs?

I tried to make a simple story with a few input from the user. But everytime I run it the first input works properly but from teh second it says "EOF when reading a line". Can someone help me please? https://code.sololearn.com/cc9ELXCYUh3H/?ref=app

6th Dec 2020, 8:48 AM
Gabi
11 Answers
+ 5
Gabi I don't guess that it will work in sololearn playground! You can't use them seperately but ig you can use them in one input! Like you can try - input().split(separator, maxsplit)
6th Dec 2020, 9:07 AM
Piyush
Piyush - avatar
6th Dec 2020, 9:54 AM
David Ashton
David Ashton - avatar
+ 1
Gabi its working perfectly you just have to give the inputs in onetime on sololearn on different lines like example :- Name Age Like that and EOF error occurs mostly due to parenthesis so check that also sometimes ....
6th Dec 2020, 5:28 PM
Sayyam Jain
Sayyam Jain - avatar
+ 1
print("Who are you?") name = input() print(name + "...") print("Intresting") print("How old are you?") age = input () print("So you are " + age) print("I will sell this information") Run... Give Name Age
7th Dec 2020, 6:05 PM
T.K.SANTHOSH
T.K.SANTHOSH - avatar
0
This code is not working properly in SoloLearn. You must seperate inputs with a new line. If you execute it on IDLE or somewhere else It will work.
6th Dec 2020, 9:05 AM
Yahya Bey
Yahya Bey - avatar
0
you can do this for example #Input 1 : Enter number #Input 2 : Enter your name Or if you really have multiple input like a game with scoreboard, then you can just comment "Copy and Use to a different IDE for multiple input", like that
6th Dec 2020, 9:19 AM
noteve
noteve - avatar
0
Thank you!
6th Dec 2020, 9:23 AM
Gabi
0
Just make all variable in lower case https://code.sololearn.com/csM6YZfbky4V/?ref=app
7th Dec 2020, 2:13 PM
Hamza Berahma
0
H
7th Dec 2020, 2:15 PM
Hamza Berahma
0
Can anyone tell me how can I take inputs from user in c# in a program It is creating a problem for me since I can't take input after execution
4th Dec 2021, 4:28 PM
Surendra Kshetri
Surendra Kshetri - avatar