C Program to Find Perimeter of Rhombus

C Program to Find Perimeter of Rhombus

Write C Program to Find a Perimeter of the Rhombus

//Write a C Program to Find Perimeter of Rhombus

#include <stdio.h>

int main()
{
    float side = 3, area;

    // Formula to computer perimeter of Rhombus
	area = 4 * side ;

	printf("Perimeter of Rhombus having side %0.2f is :--> %0.2f", side, area);

	return 0;
}

Output:

Perimeter of Rhombus having side 3.00 is :--> 12.00