Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var n = prompt("Please enter radix") - 0;
- document.write(
- "<table><tr style='font-weight:bold'>" +
- Array.apply(null, Array(n))
- .map(function(_, i){
- return "<td style='font-weight:bold'>" +
- Array.apply(null, Array(n))
- .map(function(_, j){
- return (i || j) ? ((i || 1)*(j || 1)).toString(n) : "";
- }).join("</td><td>") + "</td>";
- }).join("</tr><tr>") +
- "</tr></table>"
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement