Find the area of rhombus from given Angle and Side length | C ++ Program to calculate area of rhombus from given angle and side length ; Function to return the area of rhombus using one angle and side . ; Driver Code ; Function Call ; Print the final answer
#include <bits/stdc++.h> NEW_LINE using namespace std ; #define RADIAN  0.01745329252 NEW_LINE float Area_of_Rhombus ( int a , int theta ) { float area = ( a * a ) * sin ( ( RADIAN * theta ) ) ; return area ; } int main ( ) { int a = 4 ; int theta = 60 ; float ans = Area_of_Rhombus ( a , theta ) ; printf ( " % 0.2f " , ans ) ; return 0 ; }