C Program to Find Area of Rhombus

This C Program to Find Area of Rhombus program explains how to Find Area of Rhombus using C programming language syntax. This program takes necessary input values to Find Area of Rhombus.


Formula: Area= (1/2) * height * width.

#include <stdio.h>
void main()
{
float diag1, diag2;
float area;

printf(“Enter diagonals Rrhombus : \n “);
scanf(“%f%f”, &diag1, &diag2);
area = 0.5 * diag1 * diag2;

printf(“Area of rhombus is: %.3f \n”, area);
}

Share this