write an algorithm for special number or not
Answers
Answered by
0
Read or Initialize a number (N).
Split the given number (N) into digits if the number has more than one digit.
Find the factorial of all digits.
Sum up the factorial and store it in a variable (s).
Compare the sum with the given number (N).
If the sum is equal to the number itself, the number (N) is a special number, else not.
Please mark me as a Brainliest, if you find my answer helpful.
Similar questions
Social Sciences,
4 days ago
Math,
4 days ago
English,
4 days ago
Math,
8 months ago
Math,
8 months ago