Last active
December 14, 2015 18:48
-
-
Save hanksudo/5131810 to your computer and use it in GitHub Desktop.
Multiplication Sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
# filename: Multiplication.py <九九乘法> | |
# date: 2010-08-07 | |
if __name__ == "__main__": | |
for i in range(2, 10): | |
for j in range(1, 10): | |
print(i, " x ", j, " = ", i*j) # method 1 | |
#print("%d x %d = %d" % (i, j, i*j)) # method 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment