num=int(input("Enter a number:"))
sum=0
temp=num
while temp > 0:
digit=temp % 10
sum+=digit**3
temp //= 10
if num==sum:
print(num,"is Armstrong number")
else:
print(num,"is'nt Armstrong number")
Enter a number:5 5 is'nt Armstrong number
num=10
a,b=0,1
print("Fibonacci Series:",a,b,end=" ")
for i in range(2, num):
c=a+b
a=b
a=c
print(c,end=" ")
print()
Fibonacci Series: 0 1 1 2 3 4 5 6 7 8