: That should be exactly what you need:
double AreaOfCircle(double radius)
: {
: return 3.14159 * radius * radius;
: }
:
That's it! And to be exact, define and take
const double pi = 2.0 * acos(0.0); // 2*arccosine(0)
because pi is usually not defined in C libraries.
FDrache.