#armstrong number
num = int(input("Enter a number: "))
order = len(str(num))
sum = 0
t = num
while t > 0:
n = t % 10
t = t // 10
sum = sum + pow(n,order)
if(sum == num):
print(num,"is an Armstrong Number.")
else:
print(num,"is not an Armstrong Number.")
Enter a number: 567 567 is not an Armstrong Number.
#fibonacci number
N = int(input("Enter the number you want to check: "))
a = 0
b = 1
c = 1
if (N == 0 or N == 1):
print("Given number is fibonacci number")
else:
while a < N:
a = b + c
c = b
b = a
if a == N:
print("Given number is fibonacci number")
else:
print("No it’s not a fibonacci number")
Enter the number you want to check: 89 Given number is fibonacci number