Update pa2.cpp

Your code reads nicely. Just a few suggestions for your next project. Good luck!