[basic] working while

main
Vasily Guzov 1 year ago
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…
Cancel
Save