Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
Thank you, Sir. I found this video very helpful.
Sir aap .net ka v lecture start kijiye na
n=int(input())temp=nl=[]while(n>0): k=n%10 l.append(int(k)) n=n//10sum=0for z in range(2): x=(l[z-1]**(z+1)) sum=x+sumif(temp==sum): print("Disarium number")else: print("not a number")
import mathnumber = input("Enter a number: ")i = 0final_num = 0for num in number: i+=1 final_num += int(math.pow(int(num), i)) if (int(number) == final_num): print(f"The number {number} is a Happy Number")else: print(f"The number {number} is not a Happy Number")
Thank you, Sir. I found this video very helpful.
Sir aap .net ka v lecture start kijiye na
n=int(input())
temp=n
l=[]
while(n>0):
k=n%10
l.append(int(k))
n=n//10
sum=0
for z in range(2):
x=(l[z-1]**(z+1))
sum=x+sum
if(temp==sum):
print("Disarium number")
else:
print("not a number")
import math
number = input("Enter a number: ")
i = 0
final_num = 0
for num in number:
i+=1
final_num += int(math.pow(int(num), i))
if (int(number) == final_num):
print(f"The number {number} is a Happy Number")
else:
print(f"The number {number} is not a Happy Number")