Write a program in C++ to find the Area and Perimeter of a Rectangle
#include<iostream>
using namespace std;
int main ()
{
float h,w,a,p;
cout<<"Enter height of Rectangle ";
cin>>h;
cout<<"Enter width of Rectangle ";
cin>>w;
a=w*h;
cout<<"Area of Rectangle "<<a<<endl;
p=(h+w)*2;
cout<<"Perimeter of Rectangle "<<p<<endl;
system("pause");
}