Can someone please help me with the Halloween Candy code coach? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can someone please help me with the Halloween Candy code coach?

https://code.sololearn.com/ckHakpRdxVGZ/?ref=app I just don't understand why doesn't my code pass the 3 hidden tests.

5th Jan 2020, 12:49 AM
Vitaliy Reshetar
Vitaliy Reshetar - avatar
3 Answers
+ 3
int a= (int)Math.ceil(200/(double)houses);
5th Jan 2020, 1:12 AM
Abdol Hashimi
Abdol Hashimi - avatar
+ 1
I just finished this one myself in C# and my problem was I needed to round the numbers UP, not just round them in either direction.
5th Jan 2020, 4:11 AM
{ Aza }
{ Aza } - avatar
+ 1
Thanks to all of you!
5th Jan 2020, 8:53 AM
Vitaliy Reshetar
Vitaliy Reshetar - avatar