using System;
class Program
{
static void Main()
{
string str = "madam";
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);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: