write a program
enter
a
whether it is a
spy
no.
or
to
not
Answers
Answered by
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
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