Kursusindhold
C# Basics
C# Basics
2. Dealing with Data Types
Challenge: Outputting a Triangle
Modify the code to print a triangle like the following:
python
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("*"); } } }
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 4