#include<iostream>
#include<cmath>
#include <iomanip>
using namespace std;
int main(){
    int r,a,b,c,d;
    r=5;
    a=3.141593;
    b=2*a*r;
    c=a*pow(r,2);
    d=4/3*a*pow(r,3);
    std::cout <<std::fixed << std::setprecision(3) << b<< std::endl;
    cout<<c<<endl;
    cout<<d<<endl;
    return 0;
}

0 comments

No comments so far...