#include
#include<math.h>
using namespace std;
int main()
{
int rem=0,no,p,r=0,ans=0,count=0;
cin>>no;
no=p;
while(p>0)
{
p=p%10;
count++;
p=p/10;
}
cout<<“count=”<<count<<endl;
while(no>0)
{
rem=no%10;
ans=ans+pow(rem,count);
no=no/10;
}
if(ans==no)
{
cout<<"true"<<endl;
}
else
{
cout<<"false"<<endl;
}
return 0;
}
What is wrong in this code logic wise??

