Teng yonli uchburchak peremetri P berilgan, uchburchak tomoni va yuzini toping.
#include
#include
using namespace std;
int main()
{ double p,a,s,b;
cin>>p;
a=p/3;
s=pow(a,2)*sqrt(3)/4;
cout <<"uchburchak asosi="< cout <<"uchburchak yuzasi="<return 0;}
2.
#include
using namespace std;
int main(){
double a,b,c,d,x,y;
cin>>a>>b>>c>>d>>x;
y=2*x*x+b*b*x*x*x+cbrt(a+b*b);
y-=(pow(a,3)+pow(b,3)+3*c*d)/(pow(2*abs(a-b)+c*c,1./5));
cout<<"y="<return 0;}
3
#include
using namespace std;
int main(){
double x,y,f2;
cin>>x>>y;
f2=(1/(x+2/x*x+3/x*x*x)+exp(x*x+3*x))/(atan(x+y)+pow(5+x,2));
f2-=pow(cos(y*y+x*x/2),2);
cout<return 0;}
Do'stlaringiz bilan baham: |