#include<iostream> using namespace std; #define pi 3.14 int main() { float r; cout<<"请输入圆的半径:"; cin>>r; cout<<"圆的周长是:"<<2*pi*r<<endl; cout<<"圆的面积是:"<<pi*r*r<<endl; return 0; }