Saurabh Damalehackroot1.hashnode.dev·Jul 22, 2024Star Patterns and Basic Logic Questions in PHPWelcome to a special blog post where we delve into some interesting PHP challenges: star patterns and basic logic questions. These exercises are great for honing your programming skills and understanding loops, and conditionals in PHP. Star Patterns ...PHP
Ayush Kumarkrayush1109-dsa.hashnode.dev·Feb 20, 202401 Print Pattern - Basic Coding Question (JS)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. /...77 readsBasics DSAstar-pattern
SHAILAJA GAJERAshailaja412.hashnode.dev·Sep 28, 2023Start Pattern in javaI'll look at how to make a square pattern with Java programming. In the console, we'll write a Java program that generates a square pattern of asterisks (*). This pattern is a popular starting exercise that can help you grasp nested loops and fundame...1 like·77 readsstar-pattern