Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. //d - alpha
  7. //e - beta
  8. float a,b,c,d,e;
  9. cin >> a;
  10. cin >> d;
  11. c = a*sin(d*M_PI/180);
  12. b = a*cos(d*M_PI/180);
  13. e = 90-d;
  14. cout<<"triunghiul are catetele de lungimi "<<b<<endl;
  15. cout<<"triunghiul are unghiurile ascutite de masuri "<<c<<" si "<<e<<endl;
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement