Strong Number Program in Python || Using while loop || CodeWithCoder

Опубликовано: 10 Февраль 2022
на канале: CodeWithCoder
3,345
275

#strongnumberprograminpython #strongnumberinpython #CodeWithCoder

In this video I have discus about how to check number is strong number or not using while loop in python language.

Link :
Storng number using for loop -    • Strong Number Program in Python || Check w...  

This video code: (copy paste)

num=int(input("Enter the number: "))
temp=num
add=0
while(num):
r=num%10 #1%10=1
fact=1
while(r):
fact=fact*r
r=r-1
add=add+fact
num=num//10 #1//10=0
if add==temp:
print(temp,"is a strong number.")
else:
print(temp,"is not a strong number.")

follow me:
Instagram: code_withcoder


На этой странице сайта вы можете посмотреть видео онлайн Strong Number Program in Python || Using while loop || CodeWithCoder длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь CodeWithCoder 10 Февраль 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3,345 раз и оно понравилось 275 зрителям. Приятного просмотра!