#include
using namespace std;
main()
{
int n,k,count=0,r,rev=0;
cin>>n;
k=n;
//cout<<k;
n=k+1;
while(1)
{
while(n!=0)
{
r=n%10;
rev=rev*10+r;
n=n/10;
//cout<<“hello”;
}
//cout<<rev<<endl;
count++;
n=(k+count);
if(rev==n)
break;
n++;
}
cout<<rev<<endl;
}
help me where i’m wrong