# C Program to Check Whether a Number is Magic Number or Not2 min read

## What is Magic Number?

A number is said to be a Magic Number if the sum of the digits of that number, when multiplied by the reverse number of sum of its digits, is equal to the original number.
Example: 1729 is a magic number.

C Magic Number:
In the following C Program to check for magic Number, first, take the user input for the number which needed to be checked. Then, we find the sum of the digits of that number and then find the reverse of that sum of the digits.

Lastly, check if the multiplication of reverse and sum of the digits is equal to original entered number or not. If it is equal then print “Magic Number” else print “Not a magic Number” using if-else statement in c.

## C Program to Check Whether a Number is Magic Number or Not

The Output of magic Number in C Programming.

### C Program to Check whether the entered character is capital, small letter, digit or special character

In this tutorial, we will write a program to check whether the entered character is capital, small letter, digit or any special character using C …

### C Program to Check Armstrong Number

In this C programming example, we will write a program to check Armstrong Number in C. We will start with Armstrong Number. Before that, you …

### C Program to Generate Random numbers within a Range

In this tutorial, you will learn to generate random numbers within a range in C programming. But before that, you may go through the topic …

### C Program to Generate Random Numbers

In this C program section, we will learn how to generate random numbers in C programming. Let us start with random numbers. What is Randon …

### Keith Number in Java

In this java programming tutorial, you will learn about Keith Number and its implementation in java. It is frequently asked in Java coding. What is …

### Fascinating Number in Java

In this java program tutorial, we will learn about the Fascinating Number and its implementation through Java. We will check whether the number Fascinating Number …