Given an integer number and we have to check whether it is a Kaprekar number or not using Java program.
What is Kaprekar Number?
A Kaprekar number is a number in which the sum of digits in its square is the number itself.
Example:
9*2= 81 (Square of 9)
8+1 = 9(Sum of digits in square)
Program to check given number Kaprekar Number or not in Java
Output
need an explanation for this answer? contact us directly to get an explanation for this answer