In python:
apple_price = (whatever price you choose)
apple_quantity = int(input("How many apples are you buying? "))
print(f"The total cost of {apple_quantity} apple(s) is ${apple_quantity * apple_price}")
4.7m questions
6.1m answers