Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Strings Herausforderung | Umgang mit Datentypen
C# Grundlagen
course content

Kursinhalt

C# Grundlagen

C# Grundlagen

1. Erste Schritte
2. Umgang mit Datentypen
3. Kontrollstrukturen
4. Schleifen
5. Arrays
6. Methoden

book
Strings Herausforderung

Verwenden Sie die Zeichenfolgenverkettung, um die drei Zeichenfolgen strA, strB und strC zu verbinden und auszugeben:

cs

main

copy
123456789101112131415161718
using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { string strA = "The "; string strB = "sentence is "; string strC = "complete."; // Write code below this line Console.WriteLine(___); // Write code above this line } } }

Die Zeichenfolgenverkettung ist der Prozess des Verbindens zweier Zeichenfolgen mit dem + Operator.

cs

main

copy
123456789101112131415161718
using System; namespace ConsoleApp { internal class Program { static void Main(string[] args) { string strA = "The "; string strB = "sentence is "; string strC = "complete."; // Write code below this line Console.WriteLine(strA + strB + strC); // Write code above this line } } }

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 7
We're sorry to hear that something went wrong. What happened?
some-alt