I wrote the fallowing to test, I'm not sure why but I keep wanting to change the float to double. maybe I should. anyway I just used int main and return 0 until I know it works like it needs to. then I will add it to my program as double triangle1() or something like that. Most likely I will end up redoing the whole program a few times as I learn but programing is just to fun to wait until I really know what I am doing. (puts on geek hat)

salem, that is the site I have been looking for for the last hour, thanks.

Code:

#include <iostream>
#include <math.h>
int main()
{
// Variables A, B, and C are angles
// a, b and c are sides
float A, B, C, a, b, c, sum;
cout << "\nAngle A: ";
cin >> A;
cout << "\nAngle B: ";
cin >> B;
a = 12;
b = a * cos(A);
sum = (a * a) + (b * b);
c = sqrt(sum);
C = 180 - (A + B);
cout << "\nAngle C = " << C
<< "\n c = " << c;
cin.get();
cin.get();
return 0;
}