Desafío: Mostrar un Triángulo
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("*"); } } }
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 4
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
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
Desafío: Mostrar un Triángulo
Desliza para mostrar el menú
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("*"); } } }
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 4