Getting the last integer in a for loop and checking if the new one is equal to that

Printable View