Défi : Affichage d’un Triangle
Modifiez le code pour afficher un triangle comme suit :
***
**
*
main.cs
12345678910namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); } } }
- Utiliser trois instructions System.Console.WriteLine. L'une d'elles est déjà présente dans le code.
 
main.cs
123456789101112namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); System.Console.WriteLine("**"); System.Console.WriteLine("*"); } } }
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 4
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
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.56
Défi : Affichage d’un Triangle
Glissez pour afficher le menu
Modifiez le code pour afficher un triangle comme suit :
***
**
*
main.cs
12345678910namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); } } }
- Utiliser trois instructions System.Console.WriteLine. L'une d'elles est déjà présente dans le code.
 
main.cs
123456789101112namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); System.Console.WriteLine("**"); System.Console.WriteLine("*"); } } }
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 4