fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. Console.WriteLine(new String("AB12 9HG".TakeWhile(p => Char.IsLetter(p)).ToArray()));
  9. Console.WriteLine(new String("PJ11".TakeWhile(p => Char.IsLetter(p)).ToArray()));
  10. Console.WriteLine(new String("123JO".TakeWhile(p => Char.IsLetter(p)).ToArray()));
  11. }
  12. }
Success #stdin #stdout 0.01s 29664KB
stdin
Standard input is empty
stdout
AB
PJ