#!/bin/bash
# Prompt the user to enter a number
read -p "Enter a number: " number

# Reverse the number
reverse=""
temp=$number
while [ $temp -gt 0 ]
do
    remainder=$((temp % 10))
    reverse=$((reverse * 10 + remainder))
    temp=$((temp / 10))
done

# Check if the reversed number is equal to the original number
if [ $number -eq $reverse ]; then
    echo "The number is a palindrome."
else
    echo "The number is not a palindrome."
fi

Embed on website

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