0
Need help in fixinh code
https://code.sololearn.com/cVjPahYW2tTL/?ref=app Now is ready only the first half of code, but it still doesnt work well After entering "deposit" it doesnt ask me for sum1 and Time1 How can I fix it - "slow it down"?
3 Answers
+ 3
It's working fine, even here. If you are saying in CPG(code playground), then you need to give all inputs at the start (each on a separate line)when it prompts for input.
Run the code in your computer or though some app which supports interactive console. CPG for non-web codes is not meant for interactivity, due to many restrictions.
Input:
d
123
9
Output:
Total:0 After:9
+ 3
cin >> Time1; cin >> sum1; had to come before FinalSum1
https://code.sololearn.com/cEa689XutxEj/?ref=app
input:
d
100
10
output: Total:175 After:10
0
No, not this. The probmlem is that i cant cin Time1 and sum1