![]() |
VOOZH | about |
A rhombus is a quadrilateral whose four sides all have the same length and a rhombus is also called an equilateral quadrilateral.
The formula for finding the area of a rhombus is as follows:
(product of the lengths of the diagonals)/2
Example:
Input : p = 2, q = 3 Output: 3
Input : p = 4, q = 5 Output: 10
Implementation:
Area of rhombus = 3.0
Time complexity: O(1) since performing constant operations.
Space complexity: O(1)