0

Paint Costs

Can anyone help me with this? I've tried a lot of variations of this and always fail cases 3 and 4. Thx paint = float(input())*5 tax = ((paint*.1 + paint)+(40*.1 + 40)) import math math.ceil(tax) print(int(tax))

2nd Oct 2020, 1:19 PM
Dan
2 Antworten
+ 1
paint = float(input())*5 tax = ((paint*.1 + paint)+(40*.1 + 40)) import math print(math.ceil(tax)) math.ceil doesn't effects original value but returns a new value so it would have been int(math.ceil(tax)) but you Don need int anyway
2nd Oct 2020, 1:35 PM
Abhay
Abhay - avatar
+ 1
tax = math.ceil(tax)
2nd Oct 2020, 1:52 PM
Jayakrishna 🇮🇳