BerkayB.2000
Centipat
- Katılım
- 11 Ağustos 2020
- Mesajlar
- 43
Python:
sugar=0.03125
butter=1/48
flour=(275/10)/48
cookienumber=float(input("enter number of cookies: "))
calculate1=(0.03125 * cookienumber)
calculate2=(0.021 * cookienumber)
calculate3=(((275/10)/48) * cookienumber)
print(" you need {} cups of sugar, {} cups of butter, and {} cups of flour.".format(calculate1,round(calculate2,1),calculate3))
Bu kodu yazdım fakat resimde istenilene uymuyor. Doğrusu nedir?