Toshkent Axborot Texnalogyalari Unversiteti ttf yo’nalishi 510-23 guruh talabasi


Download 12.51 Kb.
Sana31.10.2023
Hajmi12.51 Kb.
#1735574
Bog'liq
mirsulton dasurlash


Toshkent Axborot Texnalogyalari Unversiteti
TTF yo’nalishi 510-23 guruh talabasi
Dasturlash1-b-PRG 009-2 guruhi talabasi
R.Mirsultonning tyyorlagan 1 – topshirig’i

1-Misol (17-topshiriq)




#include
#include
using namespace std;
int main ()
{
float Y, a;
cout << " a= "; cin >> a;
Y = 2 * sqrt (2) * cos (a) * sin (sqrt (2) / 2 + 2 * a);
cout<<"Natija : "<return 0;
}

2-Misol (17-topshiriq)




#include
#include
using namespace std;
int main ()
{
float Y, x, z;
cout << " x= "; cin >> x;
cout << " z= "; cin >> z;
if (fabs (x) < 5 * z)
{
Y = log (fabs (2 * x - 3 * pow (z, 2))); cout << "Natija : " << Y;
}
else
{
Y = log (2 * pow (x, 2) + 3 * z); cout << "Natija : " << Y;
}
return 0;
}

3- Misol (17-topshiriq)


17.

#include
#include
using namespace std;
int main ()
{
float x, y;
cout << " x= "; cin >> x;
cout << " y= "; cin >> y;
if (-1+x>=y && -2+x<=y && 2-x>=y && 1-x<=y)
{
cout << " bo'yalgan soha ichida yotadi" << endl;
}
else
{
cout << " bo'yalgan soha ichida yotmaydi" << endl;
}
return 0;
}

Download 12.51 Kb.

Do'stlaringiz bilan baham:




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