Friday, May 16, 2008

How to find a given number is armstrong number or not in "c".?

given no ,n=153,

n1=n; while(n>=0) {

r=n%10;

sum+=r*r*r;

n=n/10;}

if(n1==sum)then armstrong else not

No comments:

Contributors