Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta http-equiv="X-UA-Compatible" content="ie=edge" />
- <title>Document</title>
- </head>
- <body>
- <script>
- document.write('<table border="1">');
- let prod = 1;
- while (prod < 1000) {
- let n = prompt("Введите число для первой ячейки строки");
- prod *= n;
- document.write("<tr>");
- document.write(`<td>${n}</td>`);
- for (let i = 0; i < 3; i++) {
- document.write(`<td>${i + 2}</td>`);
- }
- }
- document.write("</table>");
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement