#include <iostream> #include <conio.h> #include <cmath> using namespace std; double x, s, a, b; int main() { cout<<"vvedite 2 storoni treugolnika i ugol megdu nimi\n"; cin >> a >> b >>x; s = 1.0/2*a*b*sin(x); cout<<"Ploshad rovna"<<" "<< s ; getch(); return 0; } - 3Most likely, enter the angle in degrees, and not in radians. - Vanyamba Electronics
|