Created
January 21, 2015 12:35
-
-
Save think2011/50bac5c0087e71491e3f to your computer and use it in GitHub Desktop.
九九乘法表
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
var i = 1, j = i, ret = ''; | |
for(; i <= 9;) { | |
if(j > i) { | |
ret += '\n'; | |
j = 1; | |
i++; | |
continue; | |
} | |
ret += j + ' * ' + i + ' = ' + i * j + ' '; | |
j++; | |
} | |
console.log(ret); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment