Teng yonli uchburchak peremetri p berilgan, uchburchak tomoni va yuzini toping


Download 147.13 Kb.
Sana07.01.2023
Hajmi147.13 Kb.
#1082349
Bog'liq
umrbek dastur lab 2


  1. 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;}



Download 147.13 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling