Sunteți pe pagina 1din 1

1) WAP to Test a input number while it is Armstrong Number ? Def.

- The Number which is equal to the sum of cube of its digits is said to Armstrong Number. 10 0 )0 +0 10 40 70 ;0 <0 100 110 1 0 1)0 1+0 CLS !N"#T $%nter An& Number' $(n *'n ,-!L% ./00 r ' * 23D 10 s's5r6) *'int8*910: ,%ND != n's T-%N ">!NT n( $ is Armstrong Number$ %LS% ">!NT n( $ is not Armstrong Number$ %ND!= %ND

S-ar putea să vă placă și