Q. WAP to accept any number and check the number is Krishnamurthy of special or not
Example:
Input Number- 145
Factorial value:-
1=1
4=1*2*3*4=24
5=1*2*3*4*5=120
Sum=1+24+120=145
Input value & calculated value both are same, the 153 is a Krishnamurthy or special number.