fork(1) download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var input = "10 15 20";
  9. string[] output = input.Split(' '); // o separador, nesse caso é o espaço
  10. int[] outputInt = Array.ConvertAll(output, str => int.Parse(str));
  11.  
  12. foreach(var item in outputInt)
  13. {
  14. Console.WriteLine(item.ToString());
  15. }
  16. }
  17. }
Success #stdin #stdout 0.01s 131648KB
stdin
Standard input is empty
stdout
10
15
20