Horje
C++ Area of Scalene Triangle Code Example
C++ Area of Scalene Triangle
    float a, b, c, d, e;
    
    cout << "Finding the Area of Scalene Triangle using Heron's Formula\n";
    cout << "1st Side of a Triangle: ";
    cin >> a;  
    cout << "2nd Side of a Triangle: ";
    cin >> b;
    cout << "Angle Between Sides: ";
    cin >> c;

    e = 0.5 *  (a + b + c); 	//(a + b + c) / 2
    d = sqrt(e*(e-a)*(e-b)*(e-c));

    cout << "The area is: " << d << endl;




Cpp

Related
c++ split long code Code Example c++ split long code Code Example
constant pointer c++ Code Example constant pointer c++ Code Example
how to declrae an array of size 1 Code Example how to declrae an array of size 1 Code Example
C++ Area and Circumference of a Circle Code Example C++ Area and Circumference of a Circle Code Example
dev c++ tahe last word error Code Example dev c++ tahe last word error Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9