A number is known as a spy number if the sum of its digits is exactly equal to the product of its digits | C++ Programming Language Basics