Uitdaging: Een Driehoek Weergeven
Modify the code to print a triangle like the following:
***
**
*
main.cs
12345678910namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); } } }
- Use three
System.Console.WriteLinestatements. One of them is already in the code.
main.cs
123456789101112namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); System.Console.WriteLine("**"); System.Console.WriteLine("*"); } } }
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 4
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Suggested prompts:
Can you show me the code that needs to be modified?
What does the current output of the code look like?
Do you want an explanation of how the triangle pattern works?
Awesome!
Completion rate improved to 1.59
Uitdaging: Een Driehoek Weergeven
Veeg om het menu te tonen
Modify the code to print a triangle like the following:
***
**
*
main.cs
12345678910namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); } } }
- Use three
System.Console.WriteLinestatements. One of them is already in the code.
main.cs
123456789101112namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); System.Console.WriteLine("**"); System.Console.WriteLine("*"); } } }
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 4