Question

Check whether a number is an Armstrong number using  recursion

A positive number is called an Armstrong number if  sum of its own digits each raised to the power of the number of digits is equal to number

				
					153
1^3+5^3+3^3=1+125+27=153
153 is an armstrong number
				
			

Share code with your friends

Share on whatsapp
Share on facebook
Share on twitter
Share on telegram

Code

Coding Store

Leave a Reply

Your email address will not be published. Required fields are marked *