Java Program to Find the Area of Rhombus
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
Input : p = 2, q = 3 Output: 3
Input : p = 4, q = 5 Output: 10
Area of rhombus = 3.0
Time complexity: O(1) since performing constant operations.
Space complexity: O(1)
My Personal Notes arrow_drop_up
Please Login to comment...