Home  >  Article  >  Backend Development  >  C program to find the perimeter of a parallelogram

C program to find the perimeter of a parallelogram

WBOY
WBOYforward
2023-09-01 11:01:051454browse

C program to find the perimeter of a parallelogram

We know the sides of the parallelogram and the task is to generate the perimeter of the parallelogram with the given sides and display the result

What is a parallelogram?

A parallelogram is a quadratic equation with -

  • Opposite sides are parallel
  • Diagonals are equal
  • The diagonals of a polygon bisect each other
  • li>

"a" and "b" shown in the figure below are the sides of a parallelogram, and the sides shown in the figure are parallel.

C program to find the perimeter of a parallelogram

The perimeter/perimeter of a parallelogram is defined as

Perimeter of a parallelogram = 2(a b)

                                                                                                                                                                                                             

The above is the detailed content of C program to find the perimeter of a parallelogram. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete