0
How to display a text before collecting user input in a while loop
OK, this is what I want Enter value 1 : Enter sign(+,-,*,/) : Enter value 2 : I've done this normally like after the result is given the code end . But I wanted the code to run as long as the respective values are entered and display the corresponding value So I put the (cin statement in a while loop) So is it possible to display those prompts after each respective value is entered Note I already modified the code to a somewhat agreeable point where it's still OK but if there any other way pls 🙏 do tell https://code.sololearn.com/c4ZL7t6i92p1/?ref=app
2 Respostas
+ 4
Sadly, Sololearn playground cannot handle this kind of interactive code. All inputs must be provided upfront when the code is run.
You can try this in other online compilers like repl.it
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
0
OK thanks 😊