Input String : "This is a String" Output " tTHIS IS A sTRING
I'm able to convert the upper case to lower case but somehow I'm not able to link them :(.
here is my code.. could someone please help me out here ?
static void Main()
{
string lstr = "";
string ustr = "";
Console.WriteLine("Enter the string");
string str = Console.ReadLine();
char[] strchararr = str.ToCharArray();
for (int i = 0; i < strchararr.Length; i++)
{
if (strchararr[i]>='a'&& strchararr[i]<='z')
{
ustr += char.ToUpper(strchararr[i]);
}
else if (strchararr[i] >= 'A' && strchararr[i] <= 'Z')
{
lstr+=char.ToLower(strchararr[i]);
}
}
}