Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main() {
- //d - alpha
- //e - beta
- float a,b,c,d,e;
- cin >> a;
- cin >> d;
- c = a*sin(d*M_PI/180);
- b = a*cos(d*M_PI/180);
- e = 90-d;
- cout<<"triunghiul are catetele de lungimi "<<b<<endl;
- cout<<"triunghiul are unghiurile ascutite de masuri "<<c<<" si "<<e<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement