**Problem**: A natural number is said to be a Narcissistic Number if the sum of its digits each raised to the power of the total number of digits is equal to that number.

eg. 153 = 1^3 + 5^3 + 3^3 = 153

Hence, 153 is a Narcissistic Number.

Print true if the number is a Narcissistic number

## Narcissistic Number Problem Solution:

def narcissistic(num) sum = 0 pow = num.digits.count num.digits.each do |i| sum += i**pow end return sum == num ? true : false end narcissistic(153)

*Also, see: How to make money with programming skills?*