Computer Science, asked by saravanarockers, 3 months ago

WAP algorithm to accept a number, find and display whether it’s a

Armstrong number or not​

Answers

Answered by rashmisethi337
2

Answer:

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)

Similar questions