

表面积除以铺展速率再乘以涂层数就等于油漆的体积,输出格式为[cans of paint] cans are required.


import math
area = int(input('Enter the surface area'))
rate = int(input('Enter the surface rate'))
coats = int(input('Enter the surface coats'))
volume = int(input('Enter the surface volume'))
ret = (area/rate*coats)/volume
print(f'{math.ceil(ret)} cans are required.')