0
Can someone help.. Idk why my expected output is wrong
Sequential problem https://code.sololearn.com/cIfcC1gvEyU0/?ref=app
2 Réponses
+ 4
According to the description, if it costs 10.00 for every 250 meters, then 1.25 kilometers would be 50.00 and 2.5 kilometers for 100.00, not 1.2 and 2.3. So, either the explanation is incorrect or your expectation is incorrect, but the math doesn't lie.
Also, what's up with line 6? Maybe remove it or comment it out.
+ 1
Thanks for the clarification.. Sadly thats the problem given to us.. Maybe the explanation to it is incorrect