+ 2
What to do when you have multiple inputs ?
I need proper information about students in the code.. so basically I have multiple inputs such as roll no,name,marks etc . but when I run it show only one input in front of the display when we run the code... is there any way to get one by one inputs . such as we have in. html( sleep 4000 ) is there any way to find ans of my problem if you like my question then upvote it.
3 Answers
+ 10
Code Playground does not provide a live console. All input has to be fed to the compiler prior to code compilation.
You can provide multiple inputs by splitting your input into different lines.
E.g.
std::cin >> x;
std::cin >> y;
Input:
1
2
+ 1
johit I am giving my code can you make it bcoz it gives me error
+ 1
hatsy I required real time counter in my code
https://code.sololearn.com/coVtISfFpjX0/?ref=app