using System;

class Program
{
    static void Main()
    {
        string str = "maddam";
        bool isPalindrome = true;

        for (int i = 0; i < str.Length / 2; i++)
        {
            if (str[i] != str[str.Length - 1 - i])
            {
                isPalindrome = false;
                break;
            }
        }

        Console.WriteLine("Is Palindrome: " + isPalindrome);
    }
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: