#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
In questa pagina del sito puoi guardare il video online Strong Number Program in Python || Using while loop || CodeWithCoder della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CodeWithCoder 10 febbraio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,345 volte e gli è piaciuto 275 spettatori. Buona visione!