#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; } 
  • 3
    Most likely, enter the angle in degrees, and not in radians. - Vanyamba Electronics

1 answer 1

Instead of sin(x) write sin(3.14159265359*x/180) .