Poisson Probabilities

Make a Table

12345
11,1C11,2C21,3C31,4C41,5C5
22,1C62,2C72,3C82,4C92,5C10
33,1C113,2C123,3C133,4C143,5C15

686 chars


Sample code
function makeRows() {
let row = "<th></th>";
for (let j = 1; j <= c; j++) row += "<th>" + j + "</th>";
let text = "<tr>" + row + "</tr>";
for (let i = 1; i <= r; i++) {
row = "<th>" + i + "</th>";
for (let j = 1; j <= c; j++) {
let p = c * (i - 1) + j;
let s = "<span class=tip>C" + p + "</span>";
row += "<td>" + i + "," + j + s + "</td>";
}
text += "<tr>" + row + "</tr>";
}
let t = text.length + " chars";
console.log("makeRows: " + r + "x" + c + " " + t);
tablo.innerHTML = text;
out.innerText = t;
}