#include <stdio.h>
void main() {
char str[] = "KASUK RUSAK";
int x = sizeof(str) - 2;
char str2[x];
int j = 0;
for(int i = x; i >= 0; i--, j++)
str2[j] = str[i];
for (int i = x; i <= x; i++)
if (str[i] != str2[i]) {
printf("Ini Bukan palindrome");
break;
} else {
printf("Ini Palindrome");
break;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: