Q:

Write a C# Sharp program to concatenate three strings and display the result

0

Write a C# Sharp program to concatenate three strings and display the result. 

Expected Output :

Don't count your chickens, before the eggs, have hatched.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

using System;
public class Example36
{
   public static void Main()
   {
      String str1 = "Don't count your chickens, ";
      String str2 = "before the eggs, ";
      String str3 = "have hatched.";
      var str = String.Concat(str1, str2, str3);
      Console.WriteLine(str);
   }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now