Ad
Code
Diff
  • using System;
    
    class Kata
    {
      private static string LANGUAGE = "C#";
      
      public static void Main()
      {
        string[] hello = {"H","e","l","l","o"};
        var result = String.Join("", hello);
        
        
        Console.WriteLine($"{result}, {LANGUAGE}!");
        
      }
      
      
    }
    • using System;
    • class Kata
    • {
    • private static string LANGUAGE = "C#";
    • public static void Main()
    • {
    • string[] hello = {"H","e","l","l","o"};
    • string result = "";
    • var result = String.Join("", hello);
    • foreach(string s in hello){
    • result = result + s;
    • }
    • Console.WriteLine(result + ", " + LANGUAGE + "!" );
    • Console.WriteLine($"{result}, {LANGUAGE}!");
    • }
    • }