#include<iostream>
using namespace std;

int main()
{
    int r=5;
    const double PI=3.14159;
    double S;
    S=PI*r*r;
    double C;
    C=2*PI*r;
    cout<<"面积为"<<S<<endl;
    cout<<"周长为"<<C<<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: