pelendrom string without using any standers function ?
Anoniem
#include int main(){ char string1[20], string2[20]; int i=0, j, n=0; printf("Enter string: "); scanf("%s", string1); while(string1[i++]!='\0') n++; j=n; i=0; while (j-- >=0){ string2[j]=string1[i]; i++; } i=0; j=0; while(i++<=n){ if(string1[i] != string2[i]){ j=0; break; } j=1; } if(j == 1) printf("The string is a palindrome."); }