Computer Science, asked by swethaasp23, 4 months ago

algorithm to print Armstrong number

Answers

Answered by trishadubey2008
1

Answer:

how you like that that that that look at me now look at you how you like that

Answered by LoveLights
1

\huge\rm\green{ans}\huge\rm\red{wer}

→ 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