Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace KnightsOfHonor
- {
- public class StartUp
- {
- public static void Main()
- {
- var names = Console.ReadLine()
- .Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries).ToArray();
- Action<string> appendSir = message => Console.WriteLine("Sir " + message);
- for (int i = 0; i < names.Length; i++)
- {
- appendSir(names[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment