Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NagarajaSelvan authored Oct 23, 2024
1 parent adaf971 commit 70e553a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# SPY-NUM
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");
}
}







0 comments on commit 70e553a

Please sign in to comment.