Capitalize letters in a string using C#

preview_player
Показать описание
capitalize letters in a string
Algorithm challenge using string manipulation. This shows one solution for looping through each char in a string to convert toUpper or toLower depending on whether or not the letter is in an even or odd numbered position.
Рекомендации по теме
Комментарии
Автор

convert to charArray and then determine if the char is at even place or odd (modulo operation) and do a uppercase for even.

manishpandey
Автор

Qe how to replace character in string write a c sharp program

golisrikanth
Автор

Example srikanth caracter r delete it and replace e new character in place of r how to add new char write a c sharp perogarm

golisrikanth
Автор

Nice simple way to do it.
Using A stringbuildet is faster than concatenation.

FenderSidekick
join shbcf.ru