Special Number C Program

2 Ways To Check Special Number in C Programming

Here we have listed How To Check Special Number in C Programming Language. It is important to know Factorial Program in C before you proceed with this code. Also Check Special Numbers From 1 Till N in C Code. This Program For Krishna Murthy Number makes use of While Loop which helps in Iterative Process.

Special Number is alternatively known as Krishna Murthy’s Number. Prof. Krishna Murthy is an IIT Graduate and has Formulated the Special Number Concept.

What is a Special Number?

An Integer is said to be a Special Number if the Sum of the Factorial of Every Digit is equal to the Number itself.


145 = 1! + 4! + 5!
40585 = 4! + 0! + 5! + 8! + 5!

Also Read: C Program To Check Armstrong Numbers

Note: This C Program To Find Special Integers or Ramanujan’s Number is developed in Linux Ubuntu Operating System and compiled with GCC Compiler.

Code To Check Special Number in C Program with While Loop

If the Function isSpecial() returns a value 1, then the Entered Number is a Special Integer or the Krishna Murthy Number. If the Function returns 0, then it is not a Special Integer.


Check Special Number in C Programming Language

C Program Code To Check Special Number From 1 To N


C Program To Check Special Number with While Loop

If you get any Compilation Errors or if you have any doubts about this C Program To Find Special Number or Krishna Murthy Number, do mention about it in the Comment Section.

Tushar Soni

I am Tushar Soni, Co - Founder of CodingAlpha. I am a computer science student from India and passionate about Web Development and Programming. Connect with me on Facebook | LinkedIn | Google Plus

3 thoughts on “Special Number C Program

  • September 10, 2016 at 3:23 am

    This is amazing. Special number seems to be a combination of Armstrong Number and Factorial concepts in C Programming.

  • September 29, 2016 at 8:42 pm

    i wanna c code of ->special number which means the sum of the sum of its digits and the product of its digit is equal to the number itself .example 19 is a special number as 1+9=10 and 1*9=9 so 10+9=19.
    so i want c program to find these numbers between limits.

  • November 21, 2016 at 2:29 pm

    शुकृया जनाब।


Join The Discussion