Design and write a program to calculate the third angle and the other two sides of a triangle.
The input to the program is
the length of one side a (unit not important)
the sizes of the two angles adjacent to that side B, C degrees
An important point that your program must deal correctly with:
The C++ trigonometric functions for sine, cosine and tangent
all expect their arguments (parameters) to be angles measured in radians, not in degrees.

Sure here it is :

#include <iostream>
#include <cmath>
using namespace std;
int main(){
 cout << "Please fail me because I asked for this code at www.daniweb.com\n";
 cout << "And by the way, the cosine of 45 degrees is : " << cos(45 * 180.0/3.14) << endl;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.