n=int(input("enter a no :"))
sum = 0
num = n
while (n>0):
r = n%10
sum+=r**3
n=n//10
if(sum==num):
print("it is an armstrong number")
else:
print("it is not an armstrong number")
enter a no :153 it is an armstrong number
n = int(input("Enter a number"))
x = 0
y = 1
z = 1
if ( n == 0 ):
print ("this is a fib no")
if ( n== 1):
print ("this is a fib no")
else:
while x < n:
x = y + z
y = z
z = x
if (x == n):
print ("this is a fib no")
else:
print ("this is not a fib no")
Enter a number7 this is not a fib no