using System; class Kata { public static string Main(string greeting, string language) { var g = Greeting(greeting, language); Console.WriteLine(g); return g; } public static string Greeting(string greeting, string language) => $"{greeting}, {language}!"; }
- using System;
- class Kata {
- public static string Main(string greeting, string language) {
Console.Write("{0}, {1}!\n", greeting, language);return greeting + ", " + language + "!";- var g = Greeting(greeting, language);
- Console.WriteLine(g);
- return g;
- }
- public static string Greeting(string greeting, string language) => $"{greeting}, {language}!";
- }