Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
}
Source by devsenv.com #
 
PREVIOUS NEXT
Tagged: #Area #Circle #Programming
ADD COMMENT
Topic
Name
4+5 =