1 – laboratoriya topshiriq variantlari


Download 63.49 Kb.
Sana05.12.2020
Hajmi63.49 Kb.
#160019
Bog'liq
1-labaratoriya


1 – laboratoriya topshiriq variantlari


  1. 1 –jadvalda berilgan ifodalarning qiymatini hisoblash uchun C++ dasturlash tilida dastur kodini yozing. Excel yordamida tekshiruvni bajaring:

Dastur kodi:

#include

#include

using namespace std;

int main(){

double a=8 , b=5.6 , y;

y=2*a*asin(3.14/b);

cout<

return 0;



}

Dastur natijasi:





  1. 2 –jadvalda berilgan ifodalarning qiymatini hisoblash uchun C++ dasturlash tilida dastur kodini yozing. Excel yordamida tekshiruvni bajaring:

Dastur kodi:

#include

#include

using namespace std;

int main(){

double y=4.642*pow(10,-2), x=-15.246 ,z=2000.1,a;

a=log(pow(y,-sqrt(fabs(x))))*(x-y/2)+pow(sin(atan(z)),2);

cout<

return 0;



}

Natija:



Download 63.49 Kb.

Do'stlaringiz bilan baham:




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