Created
August 1, 2014 08:32
-
-
Save motoishmz/c1f4960c3932b6f1545e to your computer and use it in GitHub Desktop.
This file contains 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
document.write("<table border='1'>") | |
for(var i=0; i<9; i++) | |
{ | |
document.write("<tr>") | |
for(var j=0; j<9; j++) | |
{ | |
document.write("<td>") | |
document.write((i+1)*(j+1)) | |
document.write("</td>") | |
} | |
document.write("</tr>") | |
} | |
document.write("</table>") | |
document.write("<table border='1'>") | |
for(var i=0; i<9; i++) | |
{ | |
document.write("<tr>") | |
for(var j=0; j<9; j++) | |
{ | |
if(i==0||j==0) | |
{ | |
document.write("<td style='font-weight:bold; color:red;'>") | |
} | |
else | |
{ | |
document.write("<td>") | |
} | |
document.write((i+1)*(j+1)) | |
document.write("</td>") | |
} | |
document.write("</tr>") | |
} | |
document.write("</table>") | |
document.write("<table border='1'>") | |
for(var i=0; i<9; i++) | |
{ | |
document.write("<tr>") | |
for(var j=0; j<9; j++) | |
{ | |
if(i==j || i+j==8) | |
{ | |
document.write("<td style='font-weight:bold; color:red;'>") | |
} | |
else | |
{ | |
document.write("<td>") | |
} | |
document.write((i+1)*(j+1)) | |
document.write("</td>") | |
} | |
document.write("</tr>") | |
} | |
document.write("</table>") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment