Learning Is Never Ending Process
Below Demo With Code
*
** *** **** *****
let n = 5;let string = "";for (let i = 1; i <= n; i++) { for (let j = 0; j < i; j++) { string += "*"; } string += "\n";}console.log(string);
No comments:
Post a Comment