Javascriptvariante von Manfred
    <script>
    m=5;
    document.write("<table cellpadding=\"8\" cellspacing=\"0\">");
    for(n = 0; n <= m; n++) {
        // Gib Zeile #n aus
        document.write("<tr align=\"center\">");
        if(m > n) document.write("<td colspan=\"" + (m-n) + "\"> </td>");
        document.write("<td colspan=\"2\">1</td>"); // k = 0
        y = 1; z = n + 1;
        for(k = 1; k <= n; k++) {
            // Gib Spalte #k aus
            z -= 1; y *= z; y /= k;
            document.write("<td colspan=\"2\">" + y + "</td>");
        }
        if(m > n) document.write("<td colspan=\"" + (m-n) + "\"> </td>");
        document.write("</tr>\n");
    }
    document.write("</table>");
    </script>
Ergebnis