三角形の面積
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
#include
#include
void main()
{
double deg,a, b;
a = 1.6, b = 1.6, deg = 90;
double rad;
rad = deg * 3.1415927 / 180;
double s;
s = a * b * sin(rad) / 2;
cout << "2辺の長さが";
cout << a << "(m)と";
cout << b << "(m)で、" << endl;
cout << "その間の角度が" << deg
<< "(度)の三角形の面積は";
cout << s << "(平方m)" << endl;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
sin や log などの算術関数を使う時は、プログラムの最初に
#include