Two or more inputs required | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Two or more inputs required

My code requires two inputs. However, Sololearn does not allow me to read the text prompting the required input. As a result, I have to put two inputs without reading the prompt messages. How should I go about this? https://code.sololearn.com/cPp5s4Bik437/?ref=app

12th Jun 2020, 11:58 AM
Lucky Sibanda
Lucky Sibanda - avatar
5 Answers
+ 2
Enter all your input in the beginning but drop to the next line for each new input like: John 1
12th Jun 2020, 12:05 PM
Olivia
Olivia - avatar
+ 1
On sololearn they wouldn't, so I'd recommend leaving a comment on the top of you code telling readers what kind of input is needed 😁
12th Jun 2020, 12:33 PM
Olivia
Olivia - avatar
0
That's what I am doing thus far. As the creator of the code, I know the input required in line one and two. Just wondering if other people attempt to interact with my code yet without an input prompting message. How would they know what to write as input? Not sure if my question is clear enough.
12th Jun 2020, 12:31 PM
Lucky Sibanda
Lucky Sibanda - avatar
0
Oh, I see. Thank you Olivia
12th Jun 2020, 12:34 PM
Lucky Sibanda
Lucky Sibanda - avatar
0
Your welcome ☺️
12th Jun 2020, 9:45 PM
Olivia
Olivia - avatar