Skip to content

JAVA Program to check if the given value is spy number or not #82

@sujana-kamasany

Description

@sujana-kamasany

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions