Лабораторная работа 1-Задание. № Функции


Download 121.18 Kb.
Sana25.02.2023
Hajmi121.18 Kb.
#1230255
TuriЛабораторная работа
Bog'liq
1-ЛАБОРАТОРНАЯ


4

DJORABEKOVA BARNO RAVSHAN QIZI

2


1-ЛАБОРАТОРНАЯ РАБОТА
1-Задание.



Функции

2.




#include
#include
using namespace std;
int main(){
float a,b,c,d,x,y;
cout<<" b= "; cin>>b;
cout<<" c= "; cin>>c;
cout<<" d= "; cin>>d;
a=d*d+(c*d)/(pow(c,2)-pow(d,2));
cout<<" x= "; cin>>x;
if(a<5){
y=1/sqrt(9+pow(x,2));
}
else y=b*sin(a);
cout<<" Y= "<
return 0;
}

2. Задание.





Задание

Параметры

2.







#include
#include
using namespace std;
int main(){
float x,pi=3.1415;
x=pi/4;
bool A=true,z;
z=tan(x)>=1 or (pow(cos(x),2)>sin(x)) or (A) or (not(pow(sin(x),2))<0.5 or cos(x)<=0);
cout<<" Z= "<
return 0;
}

Download 121.18 Kb.

Do'stlaringiz bilan baham:




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