+ 2

What is missing in my code that it fails 3 test out of 5 ?

https://code.sololearn.com/cwt9Q836dAwh/?ref=app

3rd Apr 2020, 10:41 AM
Sanskar Jain
Sanskar Jain - avatar
7 Antworten
+ 1
Instead of using your round function, try including math.h header and use ceil() function. It might solve your problem
3rd Apr 2020, 10:54 AM
Salman Nazeer
Salman Nazeer - avatar
+ 1
Your code might round it down.
3rd Apr 2020, 11:01 AM
Salman Nazeer
Salman Nazeer - avatar
+ 1
Thanks ✌️
3rd Apr 2020, 11:03 AM
Sanskar Jain
Sanskar Jain - avatar
0
Would you explain to me what'swrong?
3rd Apr 2020, 10:57 AM
Marco
Marco - avatar
0
Well it works...by the way I will be glad if u tell me what's missing in my function..
3rd Apr 2020, 10:58 AM
Sanskar Jain
Sanskar Jain - avatar
0
What's wrong is rounding. The challenge needs the numbers to be rounded UP to the nearest integer.
3rd Apr 2020, 10:59 AM
Salman Nazeer
Salman Nazeer - avatar
0
You are welcome
3rd Apr 2020, 11:04 AM
Salman Nazeer
Salman Nazeer - avatar