+ 1
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145. Write a function to determine whether a given number is a curious
Can anyone help me on this Question
3 Réponses
+ 2
Here are the steps you can follow to reach the solution:-
1. split the number into digits n/10;
2. calculate factorial of each digit iteratively or recursively.
3. Sum up the factorial of every digit and compare the sum with the orignal number.
if true then you will get your answer.
+ 1
Post ur attempt and we try to fix it
Not code all stuff for u
Fast
0
please post here https://www.sololearn.com/Discuss/1270852/?ref=app