01.11.2022, 09:40
Hier sind die beiden Codes:
<!DOCTYPE html><html lang="de">
<head>
<meta charset="utf-8">
<title>Übung, Tabelle</title>
<link rel="stylesheet" href="js4.css">
</head>
<body>
<script>
document.write("<table>");
for(let i=1; i<=5; i++)
{
document.write("<tr>");
for(let k=1; k<=15; k++)
document.write("<td>" + i * k + "</td>");
document.write("</tr>");
}
document.write("</table>");
</script>
</body>
</html>
-------------------------------------------------------------------------
<!DOCTYPE html><html lang="de">
<head>
<meta charset="utf-8">
<title>Übung, Tabelle</title>
<link rel="stylesheet" href="js4.css">
</head>
<body>
<script>
document.write("<table>");
for(let i=1; i<=5; i++)
{
document.write("<tr>");
for(let k=1; k<=15; k++)
document.write("<td>" + i * k + "</td>");
document.write("</tr>");
}
document.write("</table>");
</script>
</body>
</html>
-------------------------------------------------------------------------