Created
January 24, 2023 00:21
-
-
Save zeushammer/6e1e5467ded7292355baee21671f4e34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cashPayment = 45000 | |
amountTendered = 100000 | |
changeDue = amountTendered – cashPayment | |
print("Cash payment amount: ", cashPayment) | |
print("Tendered amount: ", amountTendered) | |
print("Change due: ", changeDue) | |
hundredThousands = changeDue / 100000; | |
hundredThousands = int(hundredThousands) | |
changeDue = changeDue % 100000 | |
tenThousands = changeDue / 10000 | |
tenThousands = int(tenThousands) | |
changeDue = changeDue % 10000 | |
YOU ENTER YOUR CODE HERE | |
print(" this many two dollar bills: ", twos) | |
print(" this many one dollar bills: ", ones) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment