well I'm just stating this one and my brain is about racked w/ the # of assignments going on.. anyways. I have to write a program where a user will input a integer and it will determine the kaprekar #'s of that #, until it reaches the user # input.
Thing about kaprekar #'s is that you're comparing the results of the squaring, breaking it apart into two separate int's, suming; then making a comparison between the number prior to squaring and the sum of the two split int's.
ex.
9^2 = 81 , 8 + 1 = 9 ;
45^2 = 2025 , 20 + 25 = 45 ;
297^2 = 88209 , 88 + 209 = 297 ;
any idea on how to complete this part (splitting the squared result properly and summing)? Everything else should be rather simple.