Skip to content

Commit

Permalink
Merge pull request #206 from DEBOBANI/main
Browse files Browse the repository at this point in the history
Strong Number
  • Loading branch information
souravjain540 committed Aug 15, 2023
2 parents 93f5dbf + dec97ca commit d9d0453
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions strong.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sum1=0
num=int(input("Enter a number:"))
temp=num
while(num):
i=1
f=1
r=num%10
while(i<=r):
f=f*i
i=i+1
sum1=sum1+f
num=num//10
if(sum1==temp):
print("The number is a strong number")
else:
print("The number is not a strong number")

0 comments on commit d9d0453

Please sign in to comment.