ChamplainTechJournals/python-csi160/week02/Week-2Practice-Problems/part7.py
2025-04-19 23:42:08 -04:00

11 lines
No EOL
332 B
Python

# Input the data
cupcake_dollars = int(input())
cupcake_cents = int(input())
num_cupcakes = int(input())
# Your code here
total_cost_cents = (((cupcake_dollars * 100) + cupcake_cents) * num_cupcakes)
total_cost_dollars = total_cost_cents // 100
total_cost_cents = total_cost_cents % 100
print(total_cost_dollars, total_cost_cents)