#include<iostream> #include<iomanip> using namespace std; #define PI 3.14159 int main(){ double d,c,s; double r; cin>>r; d=2*r; c=2*PI*r; s=PI*r*r; cout<<fixed<<setprecision(4); cout<<d<<" "<<c<<" "<<s<<endl; }
微信直接扫码登录
使用经过邮箱注册的账号密码登录