ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
STRONG NUMBER PROGRAM IN PYTHON PROGRAMMING || PROGRAM TO CHECK NUMBER IS STRONG OR NOT || PYTHON
ฝัง
- เผยแพร่เมื่อ 10 มี.ค. 2022
- STRONG NUMBER
1. Find Individual Digits of given number
2. Find Factorial for individual digits
3. Sum all the Factorials of Individual Digits
4. Compare the sum with given number.
------------------------------------------------------------------------------------------------
C PROGRAMMING
• 01 - VARIABLES & CONST...
CORE JAVA TUTORIAL FOR BEGINNERS || LEARN CORE JAVA IN 15 HOURS || JAVA TUTORIALS FOR BEGINNERS
• CORE JAVA TUTORIAL FOR...
HTML TUTORIALS WITH IMPLEMENTATION || LEARN HTML IN 4 HOURS
• HTML TUTORIALS WITH IM...
LEARN CSS IN 3 HOURS || CASCADING STYLE SHEETS FOR BEGINNERS
• LEARN CSS IN 3 HOURS |...
JAVA SCRIPT FOR BEGINNERS IN 7 HOURS || LEARN JAVA SCRIPT IN 7 HOURS || JAVA SCRIPT
• JAVA SCRIPT FOR BEGINN...
PYTHON TUTORIALS FOR BEGINNERS (తెలుగు లో)
• PYTHON TUTORIAL FOR BE...
PYTHON OOPS - MODULES - EXCEPTION HANDLING (తెలుగు లో)
• PYTHON - OOPS CONCEPTS...
PYTHON NUMPY TUTORIAL IN TELUGU (తెలుగు లో) || COMPLETE NUMPY TUTORIALS IN TELUGU
• PYTHON NUMPY TUTORIAL ...
PYTHON PANDAS TUTORIAL IN TELUGU (తెలుగు లో) || COMPLETE PANDAS TUTORIALS IN TELUGU || DATA SCIENCE
• PYTHON PANDAS TUTORIAL...
MATPLOTLIB LIBRARY - PYTHON PROGRAMMING (ENGLISH)
• MATPLOTLIB LIBRARY - P...
PYTHON DATABASE CONNECTIVITY - MYSQL & MS-EXCEL
• PYTHON DATABASE CONNEC...
DATA STRUCTURES USING PYTHON (ENGLISH)
• DATA STRUCTURES USING ...
----------------------------------------------------------------------------------------------
Instagram : / sundeepsaradhikanthety
Facebook Page : / sundeepsaradhikanthety
import math
m=input()
su=0
for j in m:
k=math.factorial(int(j))
su+=k
if su==int(m):
print("strong number")
else:
print("not a strong number")
Nice sir good explanation 😊
n = int(input("enter the number : "))
temp = n
sum = 0
while n > 0:
digit = n%10
fact = 1
# print("Digit: ",digit)
for i in range(1,digit+1):
fact = fact*i
# print("factorial", fact)
sum = sum + fact
n = n//10
print(sum)
if sum == temp:
print("number is strong")
else:
print("number is not strong")
n=int(input("enter number"))
x=n
sum=0
while n>0:
fact=1
ld=n%10
for i in range(1,ld+1):
fact=fact*i
print(fact,"factorial")
sum=sum+fact
print(sum,"sum")
n=n//10
if x==sum:
print(x,"is a strong number")
else:
print(x,"is not a strong number")
😮❤❤❤❤❤❤❤❤ thenku sirrrrr
Tq sir
so confusing