JAVA Program to check if the given value is spy number or not #82
Labels
good first issue
Good for newcomers
Hacktoberfest-Accepted
Make your Pull Request for Hacktoberfest 2023
Java
Basic Java Programs
Write a JAVA Program to find the given number is spy or not
A number whose sum of the digits of is equal to the product of its digits is called Spy number.
Example:- 132
The sum of digits = 1 + 3 + 2 = 6
The product of the digits = 1 * 3 * 2 = 6
Hence, 132 is a spy number.
Similarly, 1124 is also a spy number.
The sum of digits = 1 + 1 + 2 + 4 = 8
The product of the digits = 1 * 1 * 2 * 4 = 8
The text was updated successfully, but these errors were encountered: