write a c++ program that calculates the perimeter of a square