shreyansh-sawarn / Hacktoberfest

Participate in Hacktoberfest. Learn and get started. Contribute to open source. Make sure your pull requests are legitimate. Enjoy and have fun.
22 stars 80 forks source link

SpyNumber #55

Closed rehan-sawarn closed 4 years ago

rehan-sawarn commented 4 years ago

A spy number is a number where the sum of its digits equals the product of its digits. For example, 1124 is a spy number, the sum of its digits is 1+1+2+4=8 and the product of its digits is 112*4=8,