#include <iostream>
using namespace std;
int main()
{
//常变量必须初始化 用 = () {} 初始化后不能赋值
    const double PI=3.141592653;
    const int r=5;
    double s=0,m=0;
    s=PI*r*r;    
    m=2*PI*r;    
    cout<<s<<endl;  
    cout<<m<<endl;
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: