פשוט להגיד מה היא עושה בכל שלב ושלב.. כי אני פשוט לא מבין...#include<stdio.h>
#include<conio.h>
typedef int boolean;
boolean check_polindrom(char *num)
{
int i, save=strlen(num);
boolean polindrom=1;
for(i=0;i<(save/2);i++)
{
if(num==num) polindrom=1;
else
{
polindrom=0;
break;
}
}
return polindrom;
}
void main()
{
char num;
clrscr();
puts("THIS PROGRAM CHECKS POLINDROM NUMBER");
puts("======");
puts("");
printf("Please enter number : ");
scanf("%s",&num);
puts("");
strlwr(num);
if(check_polindrom(num)) printf("The number: %s, is POLINDROM!!",num);
else printf("The number: %s is not POLINDROM . . .",num);
getch();
}