javacodes icon indicating copy to clipboard operation
javacodes copied to clipboard

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

Open sujana-kamasany opened this issue 2 years ago • 6 comments

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

sujana-kamasany avatar Mar 04 '22 09:03 sujana-kamasany

Please assign me! I'd like to solve this.

TaeyeonRoyce avatar Mar 04 '22 16:03 TaeyeonRoyce

Please assign me! I'd like to solve this.

Go ahead i have assigned you the issue

sujana-kamasany avatar Mar 04 '22 16:03 sujana-kamasany

Please assign me! I'd like to solve this.

marcos96tavares avatar Apr 16 '23 18:04 marcos96tavares

Hey @ sujana-kamasany , is this still open? If yes can you assign this to me?

Aayush-Kapur avatar Sep 20 '23 19:09 Aayush-Kapur

hey @Aayush-Kapur i am assign this to you please go ahead and submit your solution

sujana-kamasany avatar Sep 24 '23 10:09 sujana-kamasany

Hey @sujana-kamasany , I've submitted a PR : #149 for the same. Can you please review.

Aayush-Kapur avatar Sep 24 '23 16:09 Aayush-Kapur