Paint costs code coach | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Paint costs code coach

#cb stands for canvas and brushes #nc stands for no of colors #cp stands for cost of color #tc1 stands for total cost before tax #tc2 stands for total cost + tax import math cb = int(40) nc = int(input()) cp = int(5) tc1 = int(cb + (nc * cp)) tax = math.ceil((tc1*10)/100) tc2 = tc1 + tax print(tc2)

28th Jul 2020, 2:35 PM
1 Answer
+ 2
What's the issue? There are no errors in this code.
28th Jul 2020, 3:03 PM
Sanjyot21 - avatar