+ 1
This the output :H,E,l,l,4,5,6,7,y,u,g
I have this HEll4567yug how I would separate by using comma
3 ответов
+ 2
string str;
Console.Write("Enter a string: ");
str = Console.ReadLine();
for (int i = 0; i < str.Length; i++)
Console.Write("{0}, ", str[i]);
0
1.find the length of the string between each character you wanna add a comma.
2. declare another string with (double - 1) the length of the first string.
3. push one character and a comma into the second string till the string length of the first string.
0
Alex just can you tell write the program