C Program to find area of Rhombus

Program

#include <stdio.h>
void main() {
  float area;
  int a, b;
  printf("Enter the value of diagonal 1:\t");
  scanf("%d", &a);
  printf("Enter the value of diagonal 2:\t");
  scanf("%d", &b);
  area = 0.5 * a * b;
  printf("Area of Rhombus is: %f\n", area);
}

Output

Enter the value of diagonal 1:  4
Enter the value of diagonal 2:  7
Area of Rhombus is: 14.000000