Computer Science, asked by freeb12345, 2 months ago

Write a program to check whether the given number is a Spy number or not.

(A number is Spy if the sum of its digits equals the product of its digits.)

Example: Sample Input: 1124

Sum of the digits = 1+1+2+4=8

Product of the digits=1*1*2*4=8​

Answers

Answered by ArpitMishra506
1

Answer:

See the attachment

.

.

.

.

HOPE THIS HELPS YOU.

Attachments:
Similar questions