Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

MY PROGRAMMES

Saturday, April 15, 2023

CHECK FOR ARMSTRONG NUMBER

n=int(input("Enter the number = "))
s=0
d=n
while n!=0:
    q1=n%10
    n=n//10
    s+=(q1**3)
if s==d:
    print("It is an armstrong nummber")
else:
    print("It is not an armstrong number")