Answers for "C++ Area and Circumference of a Circle"

C++
1

C++ Area and Circumference of a Circle

float rad,circum,area;
    const float PI = 3.14159265;

    cout<<"Input the radius of the Circle: ";
    cin>>rad;

    circum = 2*PI*rad;
    area = PI*rad*rad;

    cout<<"The Diameter is "<<area<<" and the circumference is "<<circum;
Posted by: Guest on March-10-2022

Code answers related to "C++ Area and Circumference of a Circle"

Browse Popular Code Answers by Language