public class PalindromeInWords
public static void Main()
string input = "Hi Madam how is oro";
string[] words = input.Split(' ');
Console.WriteLine("Palindrome words in the string:");
foreach (string word in words) {
if (IsPalindrome(word.ToLower()))
public static bool IsPalindrome(string word)
for (int i = 0; i < word.Length / 2; i++)
if (word[i] != word[word.Length - i - 1])