47.5

Run Settings
LanguageC
Language Version
Run Command
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> int main() { char word[31]; scanf("%[^\n]s", word); char s1[30] = word; char* sArr[30] = { NULL, }; int i = 0; int trueornot; char* ptr = strtok(s1, " "); while (ptr != NULL) { sArr[i] = ptr; i++; ptr = strtok(NULL, " "); } int length; length = strlen(sArr); for (int i = 0; i < length / 2; i++) { if (sArr[i] != sArr[length - 1 - i]) { trueornot = 0; break; } } printf("%d\n", trueornot); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines