Завдання з рядками
Використовуйте конкатенацію рядків, щоб об'єднати та вивести три рядки strA
, strB
та strC
:
main.cs
123456789101112131415161718using 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 } } }
- Конкатенація рядків — це процес об'єднання двох рядків за допомогою оператора +.
main.cs
123456789101112131415161718using 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 } } }
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 7
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 1.59
Завдання з рядками
Свайпніть щоб показати меню
Використовуйте конкатенацію рядків, щоб об'єднати та вивести три рядки strA
, strB
та strC
:
main.cs
123456789101112131415161718using 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 } } }
- Конкатенація рядків — це процес об'єднання двох рядків за допомогою оператора +.
main.cs
123456789101112131415161718using 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 } } }
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 7