C++ Program to Find Perimeter of Rhombus

Write C++ Program to Find Perimeter of Rhombus

// CPP Program to Find Perimeter of Rhombus

#include <iostream>
using namespace std;

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

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

	cout << "Perimeter of Rhombus having side " << side << " is :--> " << area;

	return 0;
}

Output:

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

≪ Previous | Next ≫