Qudratov abdulloh 310-20 guruh 3-labaratoriya ishi variant №7


Download 308.37 Kb.
bet1/2
Sana24.11.2020
Hajmi308.37 Kb.
#151286
  1   2
Bog'liq
QUDRATOV ABDULLOH




QUDRATOV ABDULLOH

310-20 GURUH

3-LABARATORIYA ISHI

VARIANT №7

1-jadval, 7-misol:


#include

#include

using namespace std;

int main(){

float a, b, c, d, X;

cout<<"b="; cin>>b;

cout<<"c="; cin>>c;

cout<<"d="; cin>>d;

a=(pow(b,2)-pow(c,2))/d;

if (a>0) X=pow(a,3)/(3+a);

else X=sqrt(fabs((pow(a,2)+2)/(1+a)));

cout<<"a="<

cout<<"X="<

main();


return 0;

}

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

CASE – 7:

#include

#include

using namespace std;

int main(){

float b; int a;

cout<<"Og'irlik birligini raqamda kiriting [bunda: 1-kilogramm, 2-miligramm, 3-gramm, 4-tonna, 5-sentner;]\n";

cin>>a; cout<<"Kiritgan birligingizdagi og'irlik qiymatini kiriting: "; cin>>b;

switch (a){

case 1: cout<

case 2: cout<

case 3: cout<

case 4: cout<

case 5: cout<

default: cout<<"Og'irlik birligi noto'g'ri kiritilgan\n\n"; break;

}


main();

}

///////////////////////////////////////////////////////////////////


Download 308.37 Kb.

Do'stlaringiz bilan baham:
  1   2




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