[basic] working while
parent
5541c4206f
commit
1ae5c2c4e7
@ -0,0 +1,15 @@
|
||||
export function buildPiramid(n: number) {
|
||||
let res = "";
|
||||
let counter = 0;
|
||||
|
||||
|
||||
while (counter < n) {
|
||||
res += "#"
|
||||
console.log(res);
|
||||
|
||||
counter++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
buildPiramid(7)
|
||||
Loading…
Reference in New Issue