nominals = (100, 50, 10, 1)
amount = int(input('amount = '))
output = {}
for n in nominals:
output[n] = amount // n
amount %= n
for k, v in output.items():
print(k, v, sep=':')
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment