- 1
How to correct this
2 Respostas
+ 5
Seems to (in code playground at least) cin for float values require having a dot (no integer parsing), so it will work (in code playground) if you respect two rules:
+ put all your entries at once in starting pop up asking for input
+ don't forgot to put 4 lines for your script 4 inputs needed, twice integer, then twice float
Works fine with setting input:
4
2
4.2
1.8
... but don't with:
4
2
4
2
(no output)
0
thanks @visph