Posted By

brm on 01/03/16


Tagged

test


Versions (?)

number histogram 1


 / Published in: Python
 

print number histogram 1

  1. #!/usr/bin/python
  2.  
  3. def func(a, b):
  4. for i in range(a, b+1):
  5. for j in range(a, b+1):
  6. if i==j:
  7. for count in range(i):
  8. print j,
  9. else: print j,
  10. print
  11. #print func(1,5)

Report this snippet  

You need to login to post a comment.