No problem. You want to only show changes from HIGH to LOW?
Then you need to keep an array with the values which were most recently printed.
While you are reading about arrays, think about using an array for the pin numbers too. You will always find that you need different pins and can't actually use pins 0-9 in order. Notably, pins 0 and 1 are used for Serial communication on the Mega.