Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- double x,y,h,S,P,a;
- cout<<"Vuvedi t.A:";
- cin>>x>>y;
- h=3*sqrt((x*x)+(y*y))/2;
- a=h/sqrt(3);
- P=a*3*2;
- S=a*2*h/2;
- cout<<"P="<<P<<endl<<"S="<<S;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement