My code is as follows
#include< stdio.h>
int main()
{
long int t,k,i,j;
scanf("%ld",&t);
while(t--)
{
scanf("%ld",&k);
for(j=k+1;k<=100001;j++)
{
int b,c=0;
b=j;
while (b>0)
{
c=c*10 +(b%10);
b=b/10;
}
if(c==j)
{
printf("%ld\\n",j);
goto exit;
}
}
exit:;
}
return 0;
}
i ran the code over and over again to see what mistake i am doing.
still i am unable to find a bug.
I AM GETTING A WA on submission.
please help