letra por letra en C#

1
2
/*
autor: Fer Carraro
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

1 Response

Código correcto:
using System;
using System.Collections.Generic;

public class Principal{

public static void Main(string[] args){
List<string> letras = new List<string>();
string str = "Fernando";
for(int s=0; s < str.Length; s++){
char c= str[s];
Console.WriteLine(c);
string cad=c.ToString();
letras.Add(cad);
}

Console.WriteLine(String.Join(",", letras.ToArray()));
}
}

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.