Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def nuggets(n):
- for a in range(0,100):
- for b in range (0, 100):
- for c in range (0,100):
- sum = 6*a+9*b+20*c
- if sum ==n:
- print "no. of sixes",a
- print "no. of nines",b
- print "no. of twenties",c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement