C++ Program to Find Area of Rhombus

Write C++ Program to Find Area of Rhombus

// CPP Program to Find Area of Rhombus

#include <iostream>

using namespace std;

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

	area = ( diagonal_1 * diagonal_2) / 2 ;

	cout << "Area of Rhombus having diagonal_1 = " << diagonal_1 << " and diagonal_2 = " << diagonal_2 << " :--> " << area;

	return 0;
}

Output:

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

≪ Previous | Next ≫