#include
#include
void main()
{
int n,r,sum=0,m;
clrscr();
printf("enter the number");
scanf("%d",&n);
n=m;
while(n>0)
{
r=n%10;
sum=sum+r*r*r;
n=n/10;
}
if(sum==m)
printf("no. Is armstrong");
else
printf("not armstrong");
getch();
}
#include
void main()
{
int n,r,sum=0,m;
clrscr();
printf("enter the number");
scanf("%d",&n);
n=m;
while(n>0)
{
r=n%10;
sum=sum+r*r*r;
n=n/10;
}
if(sum==m)
printf("no. Is armstrong");
else
printf("not armstrong");
getch();
}