8题求解

P2433 【深基1-2】小学数学 N 合一

Wzh0421 @ 2024-11-19 22:59:12

} else if (T == 8) { double r=5; cout<<pir2<<endl<<pirr<<endl<<4.0/3pirrr<<endl;


by PION_ @ 2024-11-21 22:12:58

else if(T==8)
{
    double pi=3.141593;
    int r=5;         
    cout<<1.0*pi*r*2<<endl<<1.0*pi*r*r<<endl<<4.0/3*pi*r*r*r<<endl;
}

|