#include<iostream>
using namespace std;
int main(){
const float PI=3.141592653589793238462643383279502884197169399375105820974944;
float radius;
cout<<"Enter the radius of a circle: ";
cin>>radius;
float area= PI * radius* radius;
float circumference= 2 * PI * radius;
cout<<"Area = "<<area<<"\n";
cout<<"Circumference = "<<circumference<<"\n";
int k;
cin>>k;
return 0;
}
Comments
Leave a comment