-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Labels
Hacktoberfest-AcceptedMake your Pull Request for Hacktoberfest 2023Make your Pull Request for Hacktoberfest 2023JavaBasic Java ProgramsBasic Java Programsgood first issueGood for newcomersGood for newcomers
Description
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
Metadata
Metadata
Assignees
Labels
Hacktoberfest-AcceptedMake your Pull Request for Hacktoberfest 2023Make your Pull Request for Hacktoberfest 2023JavaBasic Java ProgramsBasic Java Programsgood first issueGood for newcomersGood for newcomers