Ismoilov Ibrohim
M215-22 KIo‘
18-variant
1-masala
Dastur kodi:
#include
#include
using namespace std;
int main() {
float a = 4.71, y;
y = (sin(2*a)+sin(5*a)-sin(3*a))/(cos(a)+1-2*sin(2*a)*sin(2*a));
cout << "y = " << y;
return 0;
}
Natija:
y = -1.99999
2-masala
Dastur kodi:
#include
#include
using namespace std;
int main() {
float x = 5.243, y = 0.235, z = 0.345e-4, c, pi=3.14159;
c = pow(2,pow(y,x)) + pow(3,(x*y)) - y*(atan(z-pi/6))/(fabs(x)+1/(y*y+1));
cout << "c = " << c;
return 0;
}
Natija:
c = 4.89002
Do'stlaringiz bilan baham: |