using namespace std;
int main() {
int n; float pi=3.14, R, D, L, S;
cout<<"Sizda mavjud bo'lgan doira elementining tartib raqamini yozing\n1-Radius R\n2-Diametr D\n3-Uzunlik L\n4-Yuza S\n";
cout<<"N="; cin>>n;
switch(n){
case 1:{
cout<<"R="; cin>>R;
D=2*R;
cout<<"D="<<D<<endl;
L=2*pi*R;
cout<<"L="<<L<<endl;
S=pi*pow(R,2);
cout<<"S="<<S<<endl;
}
break;
case 2:{
cout<<"D="; cin>>D;
R=D/2;
cout<<"R="<<R<<endl;
L=pi*D;
cout<<"L="<<L<<endl;
S=pi*pow(D,2)/4;
cout<<"S="<<S<<endl;
}
break;
case 3:{
cout<<"L="; cin>>L;
R=L/(2*pi);
cout<<"R="<<R<<endl;
D=L/pi;
cout<<"D="<<D<<endl;
S=pi*pow(L/(2*pi),2);
cout<<"S="<<S<<endl;
}
break;
case 4:{
cout<<"S="; cin>>S;
R=sqrt(S/pi);
cout<<"R="<<R<<endl;
D=2*sqrt(S/pi);
cout<<"D="<<D<<endl;
L=2*sqrt(S*pi);
cout<<"L="<<L<<endl;
}
break;
}
return 0;
}