using System;
class Class1
{
static void Main()
{
string s = "Murali Krishna Bhattu";
char[] ch = s.ToCharArray();
string[] str = new string[3];
int k = 0;
for (int i = 0; i <= ch.Length - 1; i++)
{
if (ch[i] != ' ')
{
str[k] = str[k]+ch[i];
}
else { k++; }
}
for (int j = 2; j >= 0; j--)
{
Console.Write(str[j] + "");
}
Console.ReadLine();
}
}
class Class1
{
static void Main()
{
string s = "Murali Krishna Bhattu";
char[] ch = s.ToCharArray();
string[] str = new string[3];
int k = 0;
for (int i = 0; i <= ch.Length - 1; i++)
{
if (ch[i] != ' ')
{
str[k] = str[k]+ch[i];
}
else { k++; }
}
for (int j = 2; j >= 0; j--)
{
Console.Write(str[j] + "");
}
Console.ReadLine();
}
}
Post a Comment (0)