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
This Blog features latest placement question Papers from Top It Companies like TCS,Wipro,Infosys,We also provide Resume tips,interview skills and lot more stuffs
No comments:
Post a Comment