Solved | Sololearn: Learn to code for FREE!

+2

Solved

I'm running a code right from the tutorial in the playground, the program should ask me for 2 inputs, why am I only seeing 1 when it's ran

c++

4/7/2017 11:56:51 PM

Adam Dewitt

2 Answers

New Answer

+18

Online compilers require that you give all of your inputs in that one prompt box. The code will read them one line at a time. So for two inputs, type something like this: 25 57

+12

I.e. Split seperate inputs into seperate lines.