Showing
1 changed file
with
22 additions
and
0 deletions
practice_15/index.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html lang="en"> | ||
3 | +<head> | ||
4 | + <meta charset="UTF-8"> | ||
5 | + <title>Title</title> | ||
6 | +</head> | ||
7 | +<body> | ||
8 | +<script> | ||
9 | + var ast = ""; | ||
10 | + for (var i = 1; i <= 5; i++) { | ||
11 | + ast = ""; | ||
12 | + for (var j = 0; j < i; j++) { | ||
13 | + ast += "*"; | ||
14 | + } | ||
15 | + document.write(ast); | ||
16 | + document.write("<br/>"); | ||
17 | + } | ||
18 | + | ||
19 | + | ||
20 | +</script> | ||
21 | +</body> | ||
22 | +</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment