laflame
Aryan Shahane, Sugamay Gakhar, Jishny Ganisetti
def truncate_float(float_value): return int(float_value)
def main(): burger_price = float(input("Enter the price of the burger: ")) milkshake_price = float(input("Enter the price of the milkshake: ")) dessert_price = float(input("Enter the price of the dessert: "))
truncated_burger_price = truncate_float(burger_price)
truncated_milkshake_price = truncate_float(milkshake_price)
truncated_dessert_price = truncate_float(dessert_price)
print("Truncated burger price:", truncated_burger_price)
print("Truncated milkshake price:", truncated_milkshake_price)
print("Truncated dessert price:", truncated_dessert_price)
if name == "main": main()
Log in or sign up for Devpost to join the conversation.