#! /bin/env python
# Program to work out change

#not typos and not that greate names.

change = input("Pleas enter the number of cents ")
numq = change/25
change = change % 25
print "Number of quarters", numq
numd = change /10
change = change % 10
print "Number of dimes", numd
numn = change / 5
change = change % 5
print "Number of nickels", numn
print "Number of pennies", change
Published in: Python
Download

Related snippets