C++ Program to Find Area of Parallelogram

C++ Program to Find Area of Parallelogram

Write C++ Program to Find Area of Parallelogram

// CPP Program to Find Area of Parallelogram

#include <iostream>

using namespace std;

int main()
{
    float base = 1.5, height = 10.0 , area;

    //Formula to find the area of Rectangle
    area = base * height;

    cout << "Area of Parallelogram having base " << base << " and height " << height
        << " is :--> " << area;

    return 0;
}

Output:

Area of Parallelogram having base 1.50 and height 10.00  is :--> 15.00