+ 1

Did i do this right because i can't seem to get an output?

Trying to make a simple calculator with C++ https://code.sololearn.com/ccpxHZjOTaLd/?ref=app

6th Dec 2018, 10:49 PM
Lucky Gamer
Lucky Gamer - avatar
6 Antworten
+ 4
It works fine for me. Example Input (on SoloLearn) + 13 12 Example Output: Enter operator, either + or - or * or /: Enter operand: 25
6th Dec 2018, 11:13 PM
blackcat1111
blackcat1111 - avatar
+ 3
Your code is working. If you are testing on SL platform, when prompted input for example operator space operand space operand submit (+ 3 5)
6th Dec 2018, 11:08 PM
vlada
+ 3
Thanks for you help guys
6th Dec 2018, 11:30 PM
Lucky Gamer
Lucky Gamer - avatar
+ 2
It seems to work okay for me 🤔 Are you splitting all inputs on different lines when entering them into the prompt?
6th Dec 2018, 11:09 PM
Faisal
Faisal - avatar
+ 2
How do I separate inputs on different lines?
6th Dec 2018, 11:11 PM
Lucky Gamer
Lucky Gamer - avatar
+ 2
hit enter
6th Dec 2018, 11:13 PM
vlada