fork(4) download
  1. using System;
  2.  
  3. namespace ProgramConsole
  4. {
  5. public class Program
  6. {
  7. public static void Main(string[] args)
  8. {
  9. string s = "ahde7394";
  10. int index = 0;
  11. foreach (var i in s)
  12. {
  13. if(Char.IsDigit(i))
  14. {
  15. index = s.IndexOf(i);
  16. break;
  17. }
  18. }
  19.  
  20. Console.WriteLine(s.Substring(0, index));
  21. Console.WriteLine(s.Substring(index));
  22.  
  23. }
  24. }
  25.  
  26. }
Success #stdin #stdout 0.02s 33880KB
stdin
Standard input is empty
stdout
ahde
7394