public void Main()
{
int i = 0;
int l = 0;
int j = 0;
string[] n = new
string[11];
Console.WriteLine("Enter
the String For Reverse:=>");
n[i] =
Console.ReadLine();
i = 0;
for (i = 0; i
<= n[i] == " "; i++) {
l = l + 1;
}
for (i = l - 1; i
>= 0; i += -1) {
Console.WriteLine(n[i]);
}
Console.ReadLine();
}
|