# Program to check Armstrong Number sum = 0 # Take input num = num1 = int(input("Enter three digit Number:")) while num > 0: digit = num%10 sum += digit ** 3 num = num // 10 if sum == num1: print(num1, "is Armstrong Number") else: print(num1, 'is not Armstrong Number')