Ad
Code
Diff
  • using System;
    class Kata {
        public static string Main(string greeting, string language) {
          Console.WriteLine(Greeting(greeting, language));
          return Greeting(greeting, language);
        }
        
        public static string Greeting(string greeting, string language) => $"{greeting}, {language}!";
    }
    • using System;
    • class Kata {
    • public static string Main(string greeting, string language) {
    • var g = Greeting(greeting, language);
    • Console.WriteLine(g);
    • return g;
    • Console.WriteLine(Greeting(greeting, language));
    • return Greeting(greeting, language);
    • }
    • public static string Greeting(string greeting, string language) => $"{greeting}, {language}!";
    • }