-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (36 loc) · 904 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Table From Loops</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "poppins", sans-serif;
font-size: 35px;
color: aliceblue;
text-shadow: 0 0 15px #fff;
}
body {
width: 100%;
height: 100vh;
background-color: rgb(41, 42, 55);
display: flex;
align-items: center;
justify-content: center;
}
</style>
</head>
<body>
<script>
let table = prompt("Enter any number");
let length = prompt("Enter table ength");
for (let i = 1; i <= length; i++) {
document.write(table + " X " + i + " = " + table * i + "<br>");
}
</script>
</body>
</html>