Answer to Question #331876 in C# for Macky

Question #331876

Challenging Numerical Triangles


by CodeChum Admin



You probably have encountered Triangle pattern problems before when you started learning programming. Let’s see how well you do with numbers this time. Try to look at the examples closely and think of an algorithm that replicates the outputs. Go for it!




1
Expert's answer
2022-04-21T14:38:18-0400
using System;
using System.Text;


class Program
{
    static void Main()
    {
        int n = 99;
        for (int i = 0, j = 1; i < n; i += j, j++)
            Console.WriteLine(new string('*', j));
    }


}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS