C Program to Find Area of Rhombus

C Program to Find Area of Rhombus

Write C Program to Find an Area of the Rhombus

//Write a C Program to Find Area of Rhombus

#include <stdio.h>

int main()
{
    float diagonal_1 = 5, diagonal_2 = 7.2, area;

	area = ( diagonal_1 * diagonal_2) / 2 ;

	printf("Area of Rhombus having diagonal_1 = %0.2f and diagonal_2 = %0.2f :--> %0.2f", diagonal_1, diagonal_2, area);

	return 0;
}

Output:

Area of Rhombus having diagonal_1 = 5.00 and diagonal_2 = 7.20 :--> 18.00