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;
}