How to create * Pattern without using a loop?

Viewed 27

I have this * pattern created using this code. How would i go about creating it, without using a loop? and having the *s on the same line I would like to learn this but I cant really find any resource online. Can someone help me with this.

  public static void Main(string[] args) {
        
         for (int row = 8; row >= 1; --row)
        {
            for (int col = 1; col <= row; ++col)
            {
                Console.Write("*");
            }

            Console.WriteLine();
            
        }
0 Answers
Related