Write a program to store an array in reverse order into another array.
Anoniem
String s="Sonu"; //we take a string Char[]ch=s.Tochar[]; //we convert string to char Reversestring=Null; // take a null Reversestring For(int i=3;i<=3;i--) // we rotating to the loop 3 times ,here we print reverse so i values is "decrement" { Reversestring=Reversestring+ch[I];//This is the logic } Console.WriteLine(Reversestring);//we print the Reversestring Thank you