Sunday , December 11 2016
Home / C / C program for Kaprekar number

C program for Kaprekar number

Here is given c program for Kaprekar number.

But before what exactly is a Kaprekar number?

A Kaprekar number is a number whose square can be broken/partitioned in such a manner that the sum of the partitions adds up to bring the number itself.

Example: 992 = 9801 : 98+01 = 99  (hence kaprekar)

// This program is however limited to check untill 99999 because long int has a range of 0 – 4294967296 and 999992 is greater than that

Also Check: Java program for kaprekar number

OUTPUT:

c program for kaprekar number
program for Kaprekar number

Incoming terms: C program for kaprekar number, c program to check whether it is a kaprekar number or not.

Also See:   Program to Display Upper Triangular Matrix

Check Also

Hide Mouse Pointer C Program

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