ringa_lee
http://codepen.io/momoko8443/...
var str = ""; for(var i=1;i<=9;i++){ for(var j=1;j<=i;j++){ str += i + "*" + j + "=" + i*j + " "; if(i === j){ str += "\n"; } } } console.log(str);
http://codepen.io/momoko8443/...