#To find if a given number is a Fibonacci number num=int(input("enter a number below 100: ")) num1,num2=0,1 while num1=1: count+=1 x1//=10 #calculating the amstrong number x2=num power=0 for i in range(1,count+1): digit=x2%10 power+=digit**count x2=x2//10 if num==power: print("It is an amstrong number.") else: print("It is not an amstrong number.")