algorithm to print Armstrong number
Answers
Answered by
1
Answer:
how you like that that that that look at me now look at you how you like that
Answered by
1
→ Algorithm
Input the number.
Initialize sum=0 and temp=number.
Find the total number of digits in the number.
Repeat until (temp != 0)
remainder = temp % 10.
result = resut + pow(remainder,n)
temp = temp/10.
if (result == number)
#LoveLights.
Similar questions