fork download
  1. using System;
  2. namespace ConsoleApplication1
  3. {
  4. class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8. string info="Check the samples to see how to write a properly working code. To find out more, see the help section or the FAQ page.";
  9. int [] result=new int[info.Length];
  10. string s=string.Empty;
  11. for (int i = 0; i <= info.Length - 1; i++)
  12. {
  13. if (info[i] == ' ' && info[i + 1] == ' ')
  14. {
  15. continue;
  16. }
  17. else if (i != 0 && info[i] == ' ')
  18. {
  19. s+=info[i+1].ToString();
  20. }
  21.  
  22. }
  23. for(int j=0;j<=s.Length-1;j++)
  24. Console.WriteLine(s[j]);
  25.  
  26. }
  27.  
  28. }
  29. }
Success #stdin #stdout 0.04s 36856KB
stdin
Standard input is empty
stdout
t
s
t
s
h
t
w
a
p
w
c
T
f
o
m
s
t
h
s
o
t
F
p