Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Uppercase a specific letter within a string value on sequence

$
0
0

I have a string, and I want to uppercase a letter on every next 5 letter. For example:

string input = "welcome to america";

and I want to have the output like the following:

welcOme tO ameRica

Please help!!!


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>