1.

Write a program to accept a number and check whether it in a 'Spy Number of not. (A number i spy if the sum of its digits equals the product of its digita)SampleInput: 1124Sum of the digits - 1+1+2+4+=8Product of the digits - 1*1*2*4=8​

Answer»

#include#include#define max 10void MAIN(){ clrscr();unsigned long int m,N;int dn,sum=0,product=1;cout<<"Enter the number :";cin>>m;cout<



Discussion

No Comment Found