+ 1

A question regarding Halloween candy exercise, what's wrong with my code?

What are the three hidden test cases? Edited the code, now it works https://code.sololearn.com/cOqr4xp32dcL/?ref=app

5th Mar 2022, 7:29 AM
Dorje Bodh
Dorje Bodh - avatar
3 odpowiedzi
+ 4
Output should be rounded to the nearest integer. Try Math.Ceiling() method
5th Mar 2022, 7:41 AM
Simba
Simba - avatar
+ 1
Thanks, that worked.
5th Mar 2022, 8:41 AM
Dorje Bodh
Dorje Bodh - avatar
0
Indentation is also "what is wrong with my code" Good habits are important.
5th Mar 2022, 9:05 AM
HungryTradie
HungryTradie - avatar