Skip to content

Instantly share code, notes, and snippets.

@Senix
Created May 11, 2011 02:23
Show Gist options
  • Select an option

  • Save Senix/965797 to your computer and use it in GitHub Desktop.

Select an option

Save Senix/965797 to your computer and use it in GitHub Desktop.
0 0 0 0 0 0 0
0 1 2 3 4 5 6
0 2 4 6 8 10 12
0 3 6 9 12 15 18
0 4 8 12 16 20 24
0 5 10 15 20 25 30
0 6 12 18 24 30 36
0 7 14 21 28 35 42
0 8 16 24 32 40 48
#!/user/bin/python
width = raw_input('Width ')
height = raw_input('Height ')
for x in range(0,int(width)):
for y in range(0,int(height)):
print (x * y),
print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment