Answers

2015-06-14T14:55:20+05:30
Class ___
{
psvm()
{
int N, temp,r,cu,sum=0,
Sopln("enter the no. to be checked");
N=......................;
temp=N;
while(N!=0)
{
r=N%10;
cu=r*r*r;
sum=sum+cu;
N=N/10;
}
if (temp==sum)
{
sopln("Yes");
}
else
{
sopln("no");
}
}
}
I guess its right.
Hope this helps you
0