Благотворителна кампания - къде бъркам. Python
Малко по различен подход и се чудя къде бъркам?
Аутпута не съвпада с отговора.
Идеи?
days=int(input('Please enter campaign length: '))
part=int(input('Please enter participant count'))
cake=int(input('please enter cake count: '))
gofretti=int(input('please enter gofretti count: '))
pancakes=int(input('please enter pancake count'))
cakecount= cake * part * days
gofretticount= gofretti * part * days
pancakescount= pancakes * part * days
cakeprofit= cakecount * 45
gofrettiprofit= gofretticount * 5.8
pancakesprofit= pancakes * 3.20
totalprofit= cakeprofit + gofrettiprofit + pancakesprofit
expenses=totalprofit * 0.125
realprofit= totalprofit - expenses
print(realprofit)
output 112604.8
answer in doc: 119728.00