首页 练字文章 c++

c++

2022-08-23 15:35  浏览数:388  来源:元素周期表    

#include<bits/stdc++.h>
using namespace std;
int main()
{
double a,b,c,d,r;
cin >>a;
r = 3.14159;
c = a*2;
d = a*2*r;
b = a*a*r;
cout <<fixed<<setprecision(4) <<c <<" " ;
cout<<fixed<<setprecision(4) <<d <<" ";
cout<<fixed<<setprecision(4) <<b;
return 0;
}



声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)