Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Herausforderung: Ausgabe Eines Dreiecks | Getting Started
C# Grundlagen

bookHerausforderung: Ausgabe Eines Dreiecks

Modify the code to print a triangle like the following:

***
**
*
main.cs

main.cs

copy
12345678910
namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); } } }
  1. Use three System.Console.WriteLine statements. One of them is already in the code.
main.cs

main.cs

copy
123456789101112
namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); System.Console.WriteLine("**"); System.Console.WriteLine("*"); } } }
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 4

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

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?

bookHerausforderung: Ausgabe Eines Dreiecks

Swipe um das Menü anzuzeigen

Modify the code to print a triangle like the following:

***
**
*
main.cs

main.cs

copy
12345678910
namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); } } }
  1. Use three System.Console.WriteLine statements. One of them is already in the code.
main.cs

main.cs

copy
123456789101112
namespace ConsoleApp { internal class Program { static void Main(string[] args) { System.Console.WriteLine("***"); System.Console.WriteLine("**"); System.Console.WriteLine("*"); } } }
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 4
some-alt