Merkkijonojen Haaste
Käytä merkkijonojen yhdistämistä liittääksesi ja tulostaaksesi kolme merkkijonoa strA, strB ja 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 } } }
Merkkijonojen yhdistäminen tarkoittaa kahden merkkijonon liittämistä yhteen käyttämällä +-operaattoria.
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 } } }
Kiitos palautteestasi!
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Can you show me an example of string concatenation with these variables?
What will the output look like after concatenation?
Can I use other methods to join strings besides the + operator?
Awesome!
Completion rate improved to 1.59
Merkkijonojen Haaste
Pyyhkäise näyttääksesi valikon
Käytä merkkijonojen yhdistämistä liittääksesi ja tulostaaksesi kolme merkkijonoa strA, strB ja 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 } } }
Merkkijonojen yhdistäminen tarkoittaa kahden merkkijonon liittämistä yhteen käyttämällä +-operaattoria.
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 } } }
Kiitos palautteestasi!