Fan: Dasturlash
Guruh: 713_20
Talaba: Raximjonov Diyorbek
Masala 4. Berilgan ifodalarning qiymatini hisoblash uchun C++ dasturlash tilida dastur
kodini yozing. Excel yordamida tekshiruvni bajaring:
A=9.5, B=1.365, C=6.6, D=3
Masalaning C++ dasturlash tilidagi kodi:
#include
#include
using namespace std;
int main()
{
double a = 9.5, b = 1.365, c = 6.6, d = 3;
double y;
y = pow(sin(c) * cos(a), 3) / (5 * pow(sin(b), d));
cout << "y = " << y << endl;
return 0;
}
Dastur natijasi:
Fan: Dasturlash
Guruh: 713_20
Talaba: Raximjonov Diyorbek