wbrew prognozom, na zlosc prorokom skonczylem, shalom egzystuj juz sobie teraz w spokoju ;d

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

int main(){
  char str[20],rev[20];
  int i,j;
  printf("\nEnter a string:");
  scanf("%s",str);
  for(i=strlen(str)-1,j=0;i>=0;i--,j++)
    rev[j]=str[i];
  rev[j]='\0';
  if(strcmp(str,rev)){
    printf("\nThe string is not a palindrome\n\n");
  do{
    int a=atoi(str);
    int b=atoi(rev);
    printf("string is: %d, he reverse is: %d\n", a,b);
    printf("%d + %d = ", a, b);
    a+=b;
    printf("%d\n", a);
    sprintf(str, "%d", a);
    for(i=strlen(str)-1,j=0;i>=0;i--,j++)
      rev[j]=str[i];
    rev[j]='\0';
  }while(strcmp(str,rev));
  }
  else
    printf("\nThe string is a palindrome\n");
  return 0;
}

hahaha ten co mi wysyla xD Shalom rozwalasz mnie xd
a dla ciebie shal z dedykacja: