1-topshiriq O`lchami x bo`lgan qubik berilgan. Uning hajmini toping. V=a3
#include #include
using namespace std;
int main() {
double v,a;
cin>>a;
v=a*a*a;
cout<}
Boshlash
v,a
V=a3
v
Tamom
Radyuslari r1, r2, r3 bolgan 3 to doira radyuslari berilgan. Doiralarni yuzini hisoblang. S= 2
#include #include
using namespace std;
int main()
{
int r1,r2,r3;
double S1,S2,S3,PI=3.1415;
cin>>r1>>r2>>r3;
S1=PI*r1*r1;
S2=PI*r2*r2;
S3=PI*r3*r3;
cout<}
Boshlash
Tamom
S1,S2,S3 PI=3.1415
S1,S2,S3
r1,r2,r3
S1=PI*r1*r1 S2=PI*r2*r2 S3=PI*r3*r3
Yuzasi s va balandligi h bo`lgan uch burchag berilgan. Uni asosini toping.
#include #include
using namespace std;
int main()
{
int S,h;
double a;
cin>>S>>h;
a=2*S/h;
cout<}
Boshlash
S,h
a
Tamom
Radyusi r bo`lgan sharing yuzini toping. S=4 2
#include #include
using namespace std;
int main()
{
int r;
double S,PI=3.1415;
cin>>r;
S=4*PI*r*r;
cout<}
Boshlash
Tamom
S PI=3.1415
S
r
S=4πr2
a,b va c tamonli uch burchag berilgan. Uch burchagning pirimetiri topilsin.
P=a+b+c;
#include #include
using namespace std;
int main()
{
int a,b,c;
double P;
cin>>a>>b>>c;
P=a+b+c;
cout<
}
Boshlash
a,b,c
P
P
P=a+b+c
Tamom
Asoslari a va b, balandligi h bo`lgan g`ola yuzini toping.
#include #include using namespace std;
int main()
{
double a,b,h,PI=3.14159;
double S,c,d;
cin>>a>>b>>h;
c=(PI/4*(a*a+b*b);
d= PI/4*(a+b)*sqrt(4*h*h+pow(b-a,2)));
S=c+d;
cout<}
Boshlash
Tamom
S
a,b,h
S=c+d
S,c,d
d=
c =
Qo`nisning balandligi h va radyusi r bo`lsa uning hajmi nimaga teng bo`ladi.
#include #include using namespace std;
int main()
{
double V,r,h,PI=3.14159;
cin>>r>>h;
V=(1*PI*r*r*h)/3;
cout<return 0;
}
Boshlash
r,h
V
Tamom
Tezligi v bo`lgan avtomabil s masofani qancha vaqtda bosib o`tadi.
t : vaqt formulasi.
#include #include using namespace std;
int main()
{
double t,s,v;
cin>>s>>v;
t=s/v;
cout<return 0;
}
Boshlash
s,v
t
Tamom
h balandlikdan erkin tushayotgan jism qancha vaqtdan keyin yerga uriladi.
t : erkin tushish vaqt formulasi.
#include
#include using namespace std;
int main()
{
double t,h,g;
cin>>h>>g;
t=sqrt(2*h/g);
cout<return 0;
}
Boshlash
h,g
t
t
Tamom
Jo`mrakdan 1 s da 1 milli litr suv tomsa x yilda necha litr suv tomadi.
#include
#include using namespace std;
int main()
{
int s=1,m=60,v=3600,t=86400,n=3153600,l=1000,x,d,y;
y=2*v; // vaqti
x=y+n; // kun yoki yil
d=x/l; // qancha litr suv
cout<<"vaqt"<return 0;
}
Boshlash
S
s,m,v,t,l,y,x,d
A,B,C sonlar berilgan A ning qiymati B ga, B ning qiymati C ga, C ning qiymati A ga almashtirilsin.
#include
#include using namespace std;
int main()
{
int A,B,C;
cin>>A>>B>>C;
cout<return 0;
}
A,B,C
Boshlash
B,C,A
Tamom
Massasi m bo`lgan jismni og`irligini toping. P=m*g
#include #include using namespace std;
int main()
{
double P,m,g=9.81;
cin>>m;
P=m*g;
cout<
return 0;
}
Boshlash
m
P=m*g
P
Tamom
m massali jismga a tezlanish berilganda unga qanchali kuch tasir qiladi.
F=m*a.
#include
#include using namespace std;
int main()
{
double F,m,a;
cin>>m>>a;
F=m*a;
cout<return 0;
}
Boshlash
m,a
F=m*a
F
Tamom
Tomoni a bo’lgan kvadrat berilgan uning peremetrini aniqlang. P=4*a
#include #include using namespace std;
int main()
{
double P,a;
cin>>a;
P=4*a;
cout<
return 0;
}
Boshlash
a
P=4*a
P
Tamom
Tekislikda berilgan (x1,y1) va (x2,y2) nuqtalar orasidagi masofani toping.
#include #include using namespace std;
int main()
{
double x1,x2,y1,y2,a,b;
cin>>x1>>x2>>y1>>y2;
a=x1-x2;
b=y1-y2;
cout<return 0;
}