migrate to git.charlotte.sh
This commit is contained in:
commit
fbd588721e
412 changed files with 13750 additions and 0 deletions
11
python-csi160/week02/Week-2Practice-Problems/part7.py
Normal file
11
python-csi160/week02/Week-2Practice-Problems/part7.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
# 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)
|
Loading…
Add table
Add a link
Reference in a new issue