Tuesday , December 6 2016
Home / C / C program for Magic number

C program for Magic number

This is a C program for Magic number.

A Magic number is a number whose sum of digits eventually leads to 1.
Example#1:  19 ;  1+9 =10 ; 1+0 = 1.  Hence a magic number.
Example#2:  224; 2+2+4=10; 1+0 =1.  Hence a magic number.
Example#3:  874; 8+7+4=19; 1+9=10; 1+0=1.  Hence a magic number.

Also Check: Java program to check for a magic number

OUTPUT:

C program for magic number
C program for magic number
Also See:   C program for string matching least time

Check Also

Hide Mouse Pointer C Program

How to Hide a Mouse Pointer Program in C : This program will show and hide ...

One comment

  1. THE PROGRAMMEE IS NICE BUT IF IT IS TO BE DIFFICULT TO UNDERSTAND

Leave a Reply

Your email address will not be published. Required fields are marked *

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.