3. Disarium Number
A number is said to be Disarium if the sum of its digits raised to their respective positions is the number itself.
Example:
75
7^1+5^2=7+25=32 → False
135
1^1+3^2+5^3=1^9+125=135 → True
Print True if a number is a Disarium, otherwise print False.
Input
The Input will be any integer
135
Output
True
Comments