C Exercises: Check whether a given number is a Kaprekar number or not
6. Kaprekar Number Check Variants
Write a program in C to check whether a given number is a Kaprekar number or not.
Test Data
Input a number: 45
Sample Solution:
C Code:
Sample Output:
Input a number: 45 45 is a Kaprekar number.
Visual Presentation:
Flowchart:

For more Practice: Solve these Related Problems:
- Write a C program to verify Kaprekar numbers using string manipulation for splitting squares.
- Write a C program to check if a number is Kaprekar by testing different square splits.
- Write a C program to list Kaprekar numbers along with details of their split parts.
- Write a C program to test the Kaprekar property for large numbers using high-precision arithmetic.
C Programming Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a program in C to find the Deficient numbers (integers) between 1 to 100.
Next: Write a program in C to generate and show all Kaprekar numbers less than 1000.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.