/* Problem 4--Double Near Palindromes This was straightforward as long as you remembered that even-length palindromes are never double near palindromes and odd-length palindromes always are. */ #include #include #include FILE *in, *out; int main (int argc, char **argv); int RevCount (char *s, int f, int l); int main (int argc, char **argv) { char Word[30]; int good, i; in = fopen ("prob4.in","r"); out = fopen ("prob4.out","w"); while (fscanf (in,"%s",Word),strcmp (Word,"*END*")!=0) { good = 0; for (i=1;i