Strings Challenge
Use string concatenation to join and output the three strings strA
, strB
and strC
:
main
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}
}
}
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 } } }
String Concatenation is the process of jointing two strings using the +
operator.
main
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}
}
}
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 } } }
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 7
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme