0

Please find the bug in the code

Test cases are being failed https://code.sololearn.com/cZUd6iuzH2Dq/?ref=app

15th May 2021, 6:41 AM
Shaurya Agarwal
Shaurya Agarwal - avatar
4 ответов
+ 3
You should use ceil function as told by Mohan 333 Just see this code also houses = int(input()) import math if houses >= 3: p = 200 / houses print(math.ceil(p)) #your code goes here
15th May 2021, 6:52 AM
Sâñtôsh
Sâñtôsh - avatar
+ 3
Shaurya Agarwal Use the ceil() function to round the answer. import math print(math.ceil(percent))
15th May 2021, 6:50 AM
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜ - avatar
+ 3
import math print(math.ceil(200/int(input())))
15th May 2021, 10:20 AM
David Ashton
David Ashton - avatar
- 2
Shaurya Agarwal import math houses = int(input()) toothbrush = 1 dollar_bills = 2 candy = houses - 3 percent = (dollar_bills / houses) * 100 final_percent = math.ceil(percent) print(final_percent)
15th May 2021, 7:43 AM
A͢J
A͢J - avatar