Thursday, 16 November 2017

C Program to Find Area of Parallelogram


Code:

#include   stdio.h

int main()
{
    float base, altitude;
    float area;

    printf("Enter base and altitude of the given Parallelogram: \n ");
    scanf("%f%f", &base, &altitude);
    area = base * altitude;
    printf("Area of Parallelogram is: %.3f\n", area);
    return 0;
}


Output:

Enter base and altitude of the given Parallelogram:
 17 19
Area of Parallelogram is: 323.000


More C Programs:















100+ Best Home Decoration Ideas For Christmas Day 2019 To Make Home Beautiful

Best gifts for Christmas Day | Greeting cards for Christmas Day | Gift your children a new gift on Christmas day This Christmas d...