Reverse of a string

 string str="this is it";

for(int i=str.Length-1;i>-1;i--)

{

        Console.WriteLine(str[i]);

}

Comments

Popular posts from this blog

Print Array in Orderly sequence looping for 7 times

Bubble sorting stable algorithm