+ 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

12th Dec 2016, 6:09 AM
Barath Kumar
Barath Kumar - avatar
3 odpowiedzi
+ 2
string str; Console.Write("Enter a string: "); str = Console.ReadLine(); for (int i = 0; i < str.Length; i++) Console.Write("{0}, ", str[i]);
13th Dec 2016, 12:22 AM
Cohen Creber
Cohen Creber - avatar
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.
12th Dec 2016, 6:13 AM
Caleb
Caleb - avatar
0
Alex just can you tell write the program
12th Dec 2016, 6:15 AM
Barath Kumar
Barath Kumar - avatar