Update square.cpp
Merge pull request #5 from mercviper/Square-ex-1

Update square.cpp