Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Outputting a Triangle | Getting Started
C# Basics

Challenge: Outputting a TriangleChallenge: Outputting a Triangle

Modify the code to print a triangle like the following:

cs

main.cs

1. Use three System.Console.WriteLine statements. One of them is already in the code.

namespace ConsoleApp
{
    internal class Program
    {
        static void Main(string[] args)
        {
            System.Console.WriteLine("***");
            System.Console.WriteLine("**");
            System.Console.WriteLine("*");
        }
    }
}
      

Все було зрозуміло?

Секція 1. Розділ 4
course content

Зміст курсу

C# Basics

Challenge: Outputting a TriangleChallenge: Outputting a Triangle

Modify the code to print a triangle like the following:

cs

main.cs

1. Use three System.Console.WriteLine statements. One of them is already in the code.

namespace ConsoleApp
{
    internal class Program
    {
        static void Main(string[] args)
        {
            System.Console.WriteLine("***");
            System.Console.WriteLine("**");
            System.Console.WriteLine("*");
        }
    }
}
      

Все було зрозуміло?

Секція 1. Розділ 4
some-alt