Fanidan bajargan labaratoriya topshiriqlari


Download 1.81 Mb.
Sana17.06.2023
Hajmi1.81 Mb.
#1551682
Bog'liq
B.ABDULMADJIDOV. (Algoritmlarni loyihalash. Labaratoriya)





O’ZBEKISTON RESPUBLIKASI RAQAMLI TEXNOLOGIYALAR VAZIRLIGI



MUHAMMAD AL-XORAZMIY NOMIDAGI TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI FARG’ONA FILIALI


KOMPYUTER INJINIRINGI FAKULTETI
716 – 20-GURUH TALABASI
ABDULMADJIDOV BOTIRNING
ALGORITMLARNI LOYIHALASH”
FANIDAN BAJARGAN


LABARATORIYA TOPSHIRIQLARI


FARG’ONA – 2023-yil


#include
#include
using namespace std;
int main()
{ float S, V, l, R, r,h;
float pi=3.14;
cout<<"Radius=";
cin>>R;
cout<<"Kichik radius=";
cin>>r;
cout<<"Uzunlik=";
cin>>l;
cout<<"Balandlik=";
cin>>h;
S=pi*(R+r)*l+pi*pow(R,2)+pi*pow(r,2);
cout<<"Kesilgan konusning sirt maydoni="<
V=(pi*(pow(R,2)+pow(r,2)+R*r)*h)/3;
cout<<"Kesilgan konusning hajmi="<
return 0;
}



#include
#include
using namespace std;
int main()
{ float S, R, V, a, b, c;
float pi=3.14;
cout<<"Radius=";
cin>>R;
cout<<"a tomon=";
cin>>a;
cout<<"b tomon=";
cin>>b;
cout<<"c tomon=";
cin>>c;
S=pi*R*(a+b);
cout<<"Jism sirt maydoni="<
V=(pi*pow(a,2)*pow(b,2))/3*c;
cout<<"Hajmi="<
return 0;
}



#include
#include
using namespace std;
int main()
{ float S, R, L;
float pi=3.14;
cout<<"Radius=";
cin>>R;
S=pi*R*R;
cout<<"Jism sirt maydoni="<
L=2*S/R;
cout<<"Uzunligi="<
return 0;
}




#include
#include
using namespace std;
int main()
{ float a, b, c, p, S;
cout <<"a="; cin >>a ;
cout <<"b="; cin >>b ;
cout <<"c="; cin >>c ;
p=(a+b+c)/2;
cout<<"Yarim perimetr="<

S=sqrt(p*(p-a)*(p-b)*(p-c));

cout<<"Uchburchakning yuzi="<
return 0;
}





#include
#include
using namespace std;
int main()
{ float S, V, r;
float pi=3.14;
cout<<"Radius=";
cin>>r;
S=4*pi*pow(r,2);
cout<<"Yuzi="<
V=(4*pi*(pow(r,3)))/3;
cout<<"Hajmi="<
return 0;
}



#include
#include
using namespace std;
int main()
{ float S, V, r, l,h;
float pi=3.14;
cout<<"Radius=";
cin>>r;
cout<<"Balandlik=";
cin>>h;
cout<<"uzunlik=";
cin>>l;
S=pi*r*l;
cout<<"Yuzi="<
V=(pi*r*r*h)/3;
cout<<"Hajmi="<
return 0;
}

Download 1.81 Mb.

Do'stlaringiz bilan baham:




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