2 – laboratoriya mashg’uloti. STL komponentalar va konteynerlar bilan tanishish
Ro’ziboyev Ismoil 312-19-guruh
Variant – 8
Topshiriqlar:
1.
2.
Yechim:
Dastur kodi:
#include
#include
using namespace std;
int main(){
int x, y;
cout<<"x = ";
cin>>x;
cout<<"y = ";
cin>>y;
double z = pow(cos(x) , 4) + pow(sin(y) , 2) + 1/4 * pow(sin(2 * x) , 2) - 1;
cout<<"z = "<
}
Dastur natijasi :
Dastur kodi:
#include
#include
using namespace std;
int main(){
int x, y;
cout<<"x = ";
cin>>x;
cout<<"y = ";
cin>>y;
double z = sin(x+y) * sin(y-x);
cout<<"z = "<
}
Dastur natijasi:
Do'stlaringiz bilan baham: |