Computer Science, asked by nikhilvenkatachala, 8 months ago

Question 5
Write a menu driven program (using switch case) to accept and check whether a
number is:
(a) A Spy number or not. (A number is spy if the sum of its digits equals to the
product of digits.)
Example: consider the number 1124
Sum of digits=1+1+2+4=8
Product of digits=1*1*2*4=8
(b) Prime number or not. (A number is said to be prime if it is only divisible by 1
and the number itself)​

Answers

Answered by shroffveda
0

Answer:

this question is of which subject

Similar questions