Advertisement
desislava_topuzakova

01. Action Point

Jun 3rd, 2022
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace _01._Action_Point
  6. {
  7. internal class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. List<string> list = Console.ReadLine().Split().ToList();
  12. //"Lucas Noah Tea".Split() -> {"Lucas", "Noah", "Tea"}
  13.  
  14. //име -> отпечатваме
  15.  
  16. Action<string> print = name => Console.WriteLine(name);
  17. list.ForEach(print);
  18. }
  19. }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement