1. num = int(input("Enter a number : ")) temp = num # to store original value result = 0 while(temp>0): remainder = temp%10 temp = temp//10 result = result + remainder**3 if result == n : print("Armstrong number") else: print("Not an Armstrong number") 2. n = int(input("Enter the number : ")) fib = [0,1] num = 1 while(num<=n): num = fib[-1] + fib[-2] fib.append(num) if(n in fib): print("Fibonacci number ") else: print("Not a Fibonacci number")