html
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
<!DOCTYPE html>
<html>
<!--
challenge: on french: https://www.sololearn.com/Discuss/645893/ on English: https://www.sololearn.com/Discuss/645824/
proposed by Antoine Bergerault
made by ysraelcon.
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Triángulo de Números</title>
</head>
<body>
<p>Input the number of levels;</p>
<input type=number id=inn><br>
<input type=button value="Make Triangle:" onclick=mtR()><br>
<span id=sp></span>
<pre><b id=pr></b></pre>
<script>
function mtR(){
var n=parseInt(inn.value);
var mtr=[];
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run