- 1,题目描述:
- 2,注意:
先输出面积后输出周长
- 3,总代码:
#include<bits/stdc++.h>
using namespace std;
int main() {
int r;
double c,s,pi = 3.1415926;
cin>>r;
c = pi*2*r;
s = pi*r*r;
cout<<fixed<<setprecision(2)<<s<<endl;
cout<<fixed<<setprecision(2)<<c<<endl;
return 0;
}