Question

Print Disarium number in a given range using recursion.

(A number is said to be the Disarium number when the sum of its digit raised to the power of their respective positions is equal to the number itself.)

11 + 72 + 53 = 1 + 49 + 125 = 175

				
					ENTER THE LOWER RANGE
100
ENTER THE UPPER RANGE
500
135 175
				
			

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 *