fork(36) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string s = "1,5,12,34,12345";
  8. int index = s.LastIndexOf(',');
  9. Console.WriteLine(s.Remove(index, 1));
  10. }
  11. }
Success #stdin #stdout 0.02s 33776KB
stdin
Standard input is empty
stdout
1,5,12,3412345