WAP algorithm to accept a number, find and display whether it’s a
Armstrong number or not
Answers
Answered by
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