/ Published in: Python
print number histogram 1
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/usr/bin/python def func(a, b): for i in range(a, b+1): for j in range(a, b+1): if i==j: for count in range(i): print j, else: print j, #print func(1,5)