codinasion-archive / codinasion-programme

An open source codebase for sharing programming solutions.
https://codinasion.vercel.app/programme
MIT License
62 stars 147 forks source link

Area of a trapezoid #498

Closed harshraj8843 closed 2 years ago

harshraj8843 commented 2 years ago

Title of article

Write a C program that to compute area of trapezoid

Area of a trapezoid = ( base 1 + base 2 ) * height / 2

Example:

Base 1 = 5, Base 2 = 10, Height = 7

Area of the trapezoid = (5+10)*7/2 = 52.5

Additional information

Base 1 : 5
Base 2 : 10
Height  : 7

Area : 52.5

Code of Conduct

yougottawork commented 2 years ago

I can do this!