Kaprekar Number

Kaprekar Number
In mathematics, a non-negative integer is called a “Kaprekar number” if its square can be split into two parts that add up to the original number. For instance, 45 is a Kaprekar number, because 452 = 2025 and 20 + 25 = 45. Kaprekar numbers are named after D. R. Kaprekar.
Ex:
9, 45, 55, 99, 297, 703, 999, 2223, 2728, 4879, 4950, 5050, 5292, 7272, 7777

Output

No comments:

Post a Comment

any problem in any program comment:-

Second largest number in java using ternary operator

 //Largest second number using ternary operator public class Main { public static void main(String[] args) { int a=5,b=6,c=7; int ...