X=1234
Y[4] (creates an array of way with 4 shelves/things to store numbers in)
Y[0] = 1
Y[1] = 2
Y[2] = 3
Y[3] = 4
Next I add 7 to the numbers
Y[0] = 1+7 This would be 8
Y[1] = 2+7 This would be 9
Y[2] = 3+7 This would be 10
Y[3] = 4+7 This would be 11
Then I do that get the remainder after dividing by 10 thing
Y[0] = Y[0] % 10 This becomes 8
Y[1] = Y[1] % 10 This becomes 9
Y[2] = Y[2] % 10 This becomes 1
Y[3] = Y[3] % 10 This becomes 2
Not sure if these outcomes are 100% correct. I'm trying to do a couple different home works at once.
So...if a number is between 8 and 9 then just subtract 7 from it? if its anything else add 10 to it, then subtract 7?