Ergashov Javlonbek
Download 65.53 Kb.
|
laborotoriya ishi 1
Laborotoriya ishi 1 Mavzu: Foydalanuvchi kutubxonalari bilan ishlash. Ishdan maqsad: Dasturlash tili bilan tanishish, dasturlash tili imkoniyatlarini ko’rib chiqish, dasturiy muhitni o’rnatish , C++ tilini imkoniyatlari bilish, C++ tili bo’yicha dastlabki ma’lumotlarni bilish. Topshiriq: www.algo.ubtuit.uz saytidagi 1-30 misollarni ishlash. O`lchami x bo`lgan kubik berilgan uni hajmini toping.
Radiuslari r1, r2, r3 bo’lgan 3 to doira radiuslari berilgan. Doiralarni yuzlarini hisoblang. #include #include #include using namespace std; int main() {float r1,r2,r3; cin>>r1>>r2>>r3; float S1=M_PI*r1*r1, S2=M_PI*r2*r2, S3=M_PI*r3*r3; cout< return 0;}
#include using namespace std; int main() {float s,h;cin>>s>>h; float a=2*s/h; cout < Radiusi r bo`lgan sharning yuzini toping. #include #include #include using namespace std; int main() {float r; cin>>r; float S=4*M_PI*r*r; cout< return 0;}
#include using namespace std; int main() {float a,b,c; cin>>a>>b>>c; float p=(a+b+c)/2; cout< #include #include using namespace std; int main() {float a,b,h; cin>>a>>b>>h; float S=M_PI*a*a/4+M_PI*b*b/4+M_PI*sqrt(pow((a/2-b/2),2)+h*h)*(a/2+b/2); cout < return 0;}
#include using namespace std; int main() {float h,r; cin>>h>>r; float V=1/3.*M_PI*r*r*h; cout< return 0;} #include using namespace std;
int main() {float v,S; cin>>S>>v;
float t=S/v; cout< return 0;} #include #include using namespace std; int main()
{float h;float const gi=9.81; cin>>h; float t=sqrt(2*h/gi);
cout << setprecision(2)< return 0;}
#include using namespace std;
int main() {float x; cin>>x;
float N=60*60*24*365*x/1000; cout < return 0;} #include using namespace std;
int main() {float n; cin>>n;
float S=n*(n+1)/2; cout< return 0;} #include using namespace std;
int main() {float m; float const gi=9.81; cin>>m;
float F=m*gi; cout< return 0;} using namespace std; int main()
{float m,a; cin>>m>>a; float F=m*a;
cout<<"F="< return 0;}
#include using namespace std;
int main() {float U,r; cin>>U>>r;
float I=U/r; cout< return 0;} #include using namespace std;
int main() {float r1,r2,r3; cin>>r1>>r2>>r3;
float R=r1*r2*r3/(r2*r3+r1*r3+r1*r2); cout < return 0;} #include #include using namespace std; int main()
{float x,y; cin>>x>>y; float C=(x+y)/(y*y+abs((y*y+2)/(x+x*x*x/5)))+exp(y+2);
cout << setprecision(2)< return 0;}
#include #include #include using namespace std;
int main() {float x,y;
cin>>x>>y; float C=(x+y)/(y*y+abs((y*y+2)/(x+x*x*x/5)))+exp(y+2);
cout << setprecision(2)< #include #include #include using namespace std;
int main() {float x,y; cin>>x>>y;
float F1=(2*tan(x+M_PI/6))/(1./3+cos(y+x*x)*cos(y+x*x))+(log(x*x+2)/log(2)); cout< return 0;} Download 65.53 Kb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling