**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?*

Like!! Really appreciate you sharing this blog post.Really thank you! Keep writing.

Very good article. I certainly appreciate this website. Thanks!

Very nice post. I just stumbled upon your weblog and wished to say that

I have really loved surfing around your blog posts.

After all I’ll be subscribing in your rss feed and I’m hoping you write again soon!

Here is my web page – 더킹카지노