513-20 guruh talabasi
Rustamov Zulfiqorning
1-laboratoriya mashg’uloti
1-topshiriq, 1-misol
#include
#include
using namespace std;
int main()
{
float a,b;
float y;
cout<<"a=\n";
cin>>a;
cout<<"b=\n";
cin>>b;
y=acos(a/b-b)-(b/2*(log(pow(a,2)+pow(b,2))));
cout<<"y="<
return 0;
}
Natija
2-topshiriq, 1-misol
#include
#include
using namespace std;
int main()
{
float x,y,z;
float t;
cout<<"x=\n";
cin>>x;
cout<<"y=\n";
cin>>y;
cout<<"z=\n";
cin>>z;
t=((2*cos(x-(M_PI/6)))/((1/2)+pow(sin(y),2)))*(1+(pow(z,2)/3-(pow(z,2))/5));
cout<<"t="<
Natija
Do'stlaringiz bilan baham: |