Computer Science, asked by vasurchowdary, 8 days ago

write an algorithm for special number or not​

Answers

Answered by sakshimachhar1710
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