write a program to check whether it is a Armstrong or not ?
Input : 153Output : Yes
153 is an Armstrong number.1*1*1 + 5*5*5 + 3*3*3 = 153
Discussion posts and replies are publicly visible
a!localVariables( local!n:tostring(ri!num), if(sum( power(a!forEach( items: enumerate(len(local!n))+1, expression: charat(ri!num,fv!item) ),3)) ==ri!num,"yes it is Armstrong number", "no it is not a Armstrong number"))