Course Content
C# Basics
C# Basics
2. Dealing with Data Types
Challenge: Outputting a Triangle
Modify the code to print a triangle like the following:
main.cs
namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); } } }
Use three System.Console.WriteLine statements. One of them is already in the code.
main.cs
namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); System.Console.WriteLine("**"); System.Console.WriteLine("*"); } } }
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 4