Answers for "Area of a Circle in C++ Programming"

C++
0

Area of a Circle in C++ Programming

#include <iostream>
#include <iomanip>
using namespace std;

int main(){
    double R,A;
    cin >> R;
    A = 3.14159 * R * R;
    cout << "A=" << fixed << setprecision(4) << A << endl;
    return 0;
}
Posted by: Guest on June-28-2021

Code answers related to "Area of a Circle in C++ Programming"

Browse Popular Code Answers by Language