Answers for "how to check a armstrong number in c"

2

armstrong number

temp=n;    
while(n>0)    
{    
r=n%10;    
sum=sum+(r*r*r);    
n=n/10;    
}    
if(temp==sum)    
printf("armstrong  number ");    
else    
printf("not armstrong number");    
return 0;
Posted by: Guest on January-09-2021

Code answers related to "how to check a armstrong number in c"

Browse Popular Code Answers by Language