C Program to Find Area of Parallelogram

C Program to Find Area of Parallelogram

Write C Program to Find an Area of Parallelogram

//Write a C program to Find Area of Parallelogram

#include <stdio.h>

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

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

    printf("Area of Parallelogram having base %0.2f and height %0.2f  is :--> %0.2f ",base, height, area);

    return 0;
}

Output:

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