A. Simple Pattern 1.Print a horizontal line of stars. // ***** const horizontalLine = function (n) { let str = "" for (let i = 1; i <= n; i++) str += "*"; console.log(str); } horizontalLine(5) 2.Print a vertical line of stars. /...
krayush1109-dsa.hashnode.dev3 min read
No responses yet.