WAP C++ to find the area and perimeter of rectangle

#include <iostream>

using namespace std;

int main()
{
    float l,b,ar,p;
    cout<<"enter the length and breadth of a rectangle";
    cin>>l>>b;
    ar=l*b;
    p=2*(l+b);
    cout<<"Area of rectangle="<<ar;
    cout<<"perimeter of rectangle="<<p;
    return 0;
}

Output:-

enter the length and breadth of a rectangle 2

3

Area of rectangth =6 perimeter of rectangle =10