fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string s = "stack";
  8.  
  9. for (int i = 0; i < s.Length; i++)
  10. {
  11. Console.WriteLine (s.Insert(i, s[i].ToString()));
  12. }
  13. }
  14. }
Success #stdin #stdout 0.02s 33832KB
stdin
Standard input is empty
stdout
sstack
sttack
staack
stacck
stackk