[a,b] байгаа палиндром тоонуудыг ол.

‪#‎include‬ <stdio.h>
#include <conio.h>
void main ()
{long n,i,s,a,b,m;
printf ("a,b (a>b)=");
scanf ("%d%d",&a,&b);
for(n=a;n<=b;n++)
{
s=0;m=n;
do { s=s*10+m_; m=m/10; } while (m);
if ( n==s) printf("%d,",n);
}
getch ();
}

Comments