using System; class Kata { private static string LANGUAGE = "C#"; public static void Main() { string[] hello = {"H","e","l","l","o"}; string result = ""; for(int i = 0 ; i < hello.Length; i ++) { result = result + hello[i]; } 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 = "";
- for(int i = 0 ; i < hello.Length; i ++)
- {
- result = result + hello[i];
- }
- Console.WriteLine(result + ", " + LANGUAGE + "!" );
Console.WriteLine(hello[0] + hello[1] + hello[2] + hello[3] + hello[4] + ", " + LANGUAGE + "!");- }
- }