Course Content
C# Basics
C# Basics
Challenge: Outputting a Triangle
Modify the code to print a triangle like the following:
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("*");
}
}
}
Everything was clear?
Section 1. Chapter 4
Course Content
C# Basics
C# Basics
Challenge: Outputting a Triangle
Modify the code to print a triangle like the following:
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("*");
}
}
}
Everything was clear?
Section 1. Chapter 4