write a program to input a number and print whether the number is special number or not. A number is said to be special number if the sum of the factorial of the number is same as the original number.
Answers
Answered by
0
Answer:
145 is a special number, because 1!+4!+5! = 1 + 24 + 120 = 145 (Where ! stands for factorial of the number and the factorial value of a number is the product of all integers from 1 to that number, example 5! = 1*2*3*4*5 = 120). Read more on Sarthaks.com - https://www.sarthaks.com/840393/write-a-program-to-input-a-number-and-print-whether-the-number-is-a-special-number-or-not
Explanation:
please mark me as brainest
Similar questions