diff --git a/Greeter.cs b/Greeter.cs new file mode 100644 index 0000000..c8e3ad8 --- /dev/null +++ b/Greeter.cs @@ -0,0 +1,11 @@ +public class Greeter +{ + public static string Greet(string name) + { + if (string.IsNullOrWhiteSpace(name)) + { + return "Привет, незнакомец!"; + } + return $"Привет, {name}!"; + } +}