Paint cost problem: iam failing only test number 3 test 1 2 4 5 are ok can anyone tell me whats wrong in my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Paint cost problem: iam failing only test number 3 test 1 2 4 5 are ok can anyone tell me whats wrong in my code

brush=40 color=int(input()) paint=color*5 total=brush+paint tax=10/100*total value=total+tax print(round(value))

18th Apr 2020, 11:31 AM
Abdul Majeed Faraz
Abdul Majeed Faraz - avatar
3 Answers
+ 2
import math ...code... print(math.ceil(value))
18th Apr 2020, 12:17 PM
ChaoticDawg
ChaoticDawg - avatar
+ 3
thanks it worked
18th Apr 2020, 2:45 PM
Abdul Majeed Faraz
Abdul Majeed Faraz - avatar
+ 1
ok thanks i will try
18th Apr 2020, 2:43 PM
Abdul Majeed Faraz
Abdul Majeed Faraz - avatar