CHECKING SPY NUMBER OR NOT #include <stdio.h> int main() { int n; scanf("%d",&n); int sum=0,p=1; while(n!=0) { sum=sum+n%10; p=p*n%10; n=n/10; } if(sum==p) { printf("SPY NUMBER"); } else{ printf("NOT A SPY NUMBER"); } }
-
Notifications
You must be signed in to change notification settings - Fork 1
NagarajaSelvan/SPY-NUM
About
CHECKING SPY NUMBER OR NOT
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published