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!a: sum( power( tointeger(char(code(ri!num))), len(ri!num) ) ), if( local!a = ri!num, ri!num & " is an Armstrong Number", ri!num & " is not an Armstrong Number" ), )
Thank you Sir. Will take care of this from the next time.