MUHAMMAD AL-XORAZMIY NOMIDAGI
TOSHKEMT AXBOROT TEXNOLOGIYALARI UNIVERSITETI
“TELEVIZON TEXNOLOGIYALAR”
yo’nalishi
SWD005-1
Madaminov Abdulazizning
“DASTURLASH I” fanidan tayyorlagan
2 - Amaliy ishi
O’qituvchi: Babajanov Mo’min Rajabovich
Toshkent – 2022
21-VARIANT
1-TOPSHIRIQ:
Kod:
#include
#include
using namespace std;
int main(){
float x,y;
cin >> x >> y;
if((abs(y)<=1 && abs(x)<=1 && y<=sqrt(1-x*x)) && ((y>0 && y>(1-x)) or (y<(1-x) && y<0))){
cout << "Yes\n";
}else{
cout << "No\n";
}
main();
}
Natija:
2-Topshiriq
Kod:
#include
#include
using namespace std;
int main(){
float y, x=1, z, a,b;
cout <<"a = "; cin >>a;
cout <<"b = "; cin >>b;
z = tan(b*x) * tan(b*x);
if (x <= a) y = a * pow(cos(x),2) + b * sin(z*x);
else if (a < x and x <= 4.5 * b) y = a * tan(a*x + z) + pow(sin(b*x),2);
else y = log(a*x - b) + z*z;
cout <<"y = "<
main();
return 0;
}
Natija:
Do'stlaringiz bilan baham: |