O’ZBEKISTON RESPUBLIKASI RAQAMLI TEXNOLOGIYALARI
VAZIRLIGI
MUXAMMAD AL-XORAZMIY NOMIDAGI
TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI
“Dasturlash 1” fanidan
AMALIY ISH - 1
Bajardi: Xurramov Shaxobiddin
Toshkent 2023
XURRAMOV SHAXOBIDDIN ISMATILLO O‘G‘Li
VARIANT _ 17
14.11.2003
Topshiriq_1:
Dastur kodi:
#include #include using namespace std; int main()
{
double Y,a;
cout<<"a = ";
cin>>a;
Y = 2*sqrt(2)*cos(a)*sin((M_PI)/4+2*a);
cout<<"Y = "<return 0;
}
Natija:
Topshiriq_2:
Dastur Kodi:
#include
#include
using namespace
std; int main()
{
double S = 0, x, y,
z; x = 0.1476;
y = 3.56;
z = 1.25 * pow(10, -4);
if ((fabs(x - y) * z + x * x) != 0) {
S = 5 * atan(x) - (1.0 / 4) * acos(x) * (x + 3 * fabs(x - y) + x * x) * 1.0 /
(fabs(x - y) * z + x * x);
}
cout << "S = " << S;
return 0;
}
Natija:
|