Зміст курсу
C# Basics
C# Basics
Strings Challenge
Use string concatenation to join and output the three strings strA
, strB
and strC
:
main
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 } } }
- String Concatenation is the process of jointing two strings using the + operator.
main
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 } } }
Дякуємо за ваш відгук!