calculate aea of rectange using c++