fork download
  1. using static System.Convert;
  2. using static System.Console;
  3.  
  4. public class Program {
  5. public static void Main() {
  6. var exemplo = "13032015joao";
  7. var dia = ToInt32(exemplo.Substring(0, 2));
  8. var mes = ToInt32(exemplo.Substring(2, 2));
  9. var ano = ToInt32(exemplo.Substring(4, 4));
  10. var nome = exemplo.Substring(8);
  11. WriteLine(dia);
  12. WriteLine(mes);
  13. WriteLine(ano);
  14. WriteLine(nome);
  15. }
  16. }
  17.  
  18. //https://pt.stackoverflow.com/q/54224/101
Success #stdin #stdout 0.02s 16164KB
stdin
Standard input is empty
stdout
13
3
2015
joao