#include <stdio.h>
#include <string.h>

int main() {
    char str[100];
    //초기화 0,1중에 고르는법
    //1 -> 단 하나라도 틀리면 안 되는 경우
    //0 -> 단 하나라도 맞는 게 있으면 되는 경우
    
    int Is_Pal=1;
    int len;
    scanf("%s",str);
    len = strlen(str);
    for (int i=0; i<len/2; i++) {
        if (str[i]!=str[len-1-i]) {
            Is_Pal=0;
            break;
            }
        
    }
    if(Is_Pal) printf("Palindrome");
    return 0;
}

Embed on website

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