using System; class Kata { private static string LANGUAGE = "C#"; public static void Main() { string[] hello = {"H","e","l","l","o"}; Console.WriteLine(hello[0] + hello[1] + hello[2] + hello[3] + hello[4] + ", " + LANGUAGE + "!"); } }
- using System;
- class Kata
- {
- private static string LANGUAGE = "C#";
- public static void Main()
- {
System.Console.WriteLine($"Hello, {LANGUAGE}!");- string[] hello = {"H","e","l","l","o"};
- Console.WriteLine(hello[0] + hello[1] + hello[2] + hello[3] + hello[4] + ", " + LANGUAGE + "!");
- }
- }