📅  最后修改于: 2022-03-11 14:58:59.700000             🧑  作者: Mango
#include
#include
using namespace std;
int main() {
// Declare R. P
double r;
double p = 3.14;
// Read R
cout << "Enter the Radius: ";
cin >> radius;
// Solve the Radius of a circle
// using radius formula in circle
radius = pi * pow(radius, 2);
double circle = 2 * pi * radius;
// Display R and C
cout << "Radius of Circle = " << radius << endl;
cout << "Circle Area = " << circle << endl;
return 0;
}