Biscuit Slices Code

 avatar
unknown
plain_text
2 years ago
633 B
2
Indexable
def biscuitSlices():
    length = float(input("Enter the length of the baking tray (in cm) here: "))
    width = float(input("Enter the width of the baking tray (in cm) here: "))
    slices = int(input("Enter the number of slices the mixture should be cut into: "))
    thickness = length/slices
    area = length*width
    biscuitarea = area/slices
    extracalories = 950/area
    totalcalories = 3 + extracalories
    biscuitcalories = totalcalories*biscuitarea
    brotherbiscuitslice = 1200//biscuitcalories
    print(thickness)
    print(biscuitarea)
    print(biscuitcalories)
    print(int(brotherbiscuitslice))
Editor is loading...