Computer Science, asked by divyansh8960, 10 months ago

write a program
enter
a
whether it is a
spy
no.
or
to
not​

Answers

Answered by Shubhgyanji
10

Answer:

Spy number:  If the sum of all the digits is equal to the product of all digits

As language not given, so algorithm is written.

Explanation:

Input : 1412

Explanation :  

sum = (1 + 4 + 1 + 2) = 8

product = (1 * 4 * 1 * 2) = 8

since, sum == product == 8

Output : Spy Number

Answered by varun13154
9

Answer:

hiiii

Explanation:

A number is a Spy number, if sum and product of all digits are equal. In this java program, we are going to check whether a given number is SPY number or not?

Submitted by IncludeHelp, on October 29, 2017

Similar questions