write a program to find armstrong number in a list of python.don't post useless answer
Answers
Answered by
1
Answer:
list = [12,13,24,35,44,2,5,10,15] #WriteYourList
armstrong_numbers = []
for num in list:
sum = 0
temp = num
while temp > 0:
digit = temp % 10
sum += digit ** 3
temp //= 10
if num == sum:
armstrong_numbers.append(num)
print(armstrong_numbers,"are the armstrong numbers in the list.")
Similar questions