Kaprekar's
Routine
and
Constant
Input number from 100 to 9999
-
+
6174 is the Kaprekar’s Constant
for 4 digits