Conteúdo do Curso
C# Basics
C# Basics
Challenge: Outputting a Triangle
Modify the code to print a triangle like the following:
main
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
namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); System.Console.WriteLine("**"); System.Console.WriteLine("*"); } } }
Obrigado pelo seu feedback!