Huehive Logo

HueHive

#f9f Pinkalicious
#333 Carbon
#bbf Purple Illusion
#f66 Pompelmo
#fff White

How to check if a word is a palindrome?

Palette Description

mermaid
flowchart LR
    start((Start)) --> input{Enter a word}
    input --> isPalindrome{Is the word a palindrome?}
    isPalindrome -- Yes --> displayYes(Display "Yes, it is a palindrome")
    isPalindrome -- No --> displayNo(Display "No, it is not a palindrome")

    style start fill:#f9f,stroke:#333,stroke-width:4px
    style input fill:#f9f,stroke:#333,stroke-width:2px
    style isPalindrome fill:#f9f,stroke:#333,stroke-width:2px
    style displayYes fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff
    style displayNo fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff