0

I'm trying to solve the Halloween Candy challenge.

I've successfully printed out the correct answer but the challenge wants the answer in rounded decimal number, so my output of 66.7 was rejected because the needed output is 67? Please how do I solve this using C?

19th Jan 2020, 9:41 AM
Jim Ezesinachi
Jim Ezesinachi - avatar
7 Antworten
+ 2
Jim Ezesinachi how? Help me I'm not getting answer
21st Jan 2020, 10:13 AM
Roopam Maurya
Roopam Maurya - avatar
+ 2
Jim Ezesinachi i got the right output
22nd Jan 2020, 5:45 PM
Roopam Maurya
Roopam Maurya - avatar
+ 1
Hey did u get the output
19th Jan 2020, 2:19 PM
Roopam Maurya
Roopam Maurya - avatar
0
Coder Kitten I did. But it rounded 66.7 down to 66
19th Jan 2020, 10:27 AM
Jim Ezesinachi
Jim Ezesinachi - avatar
0
Where do I put the int ceil?
19th Jan 2020, 10:34 AM
Jim Ezesinachi
Jim Ezesinachi - avatar
0
Thanks guys. It worked
20th Jan 2020, 6:24 AM
Jim Ezesinachi
Jim Ezesinachi - avatar
0
Roopam What output are you getting?
22nd Jan 2020, 10:37 AM
Jim Ezesinachi
Jim Ezesinachi - avatar