fork(1) download
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. IEnumerable<string> nameParts = "Jan van Rijswijcklaan 124".Split()
  10. .TakeWhile(word => !word.All(Char.IsDigit));
  11. string name = string.Join(" ", nameParts.ToArray());
  12. Console.WriteLine(name);
  13. }
  14. }
Success #stdin #stdout 0.03s 33816KB
stdin
Standard input is empty
stdout
Jan van Rijswijcklaan