Horje
PI IN C++ WITH CMATH Code Example
PI IN C++ WITH CMATH
#include <iostream>
#include <cmath>
using namespace std;
float area(int radius) {
   return M_PI * (radius * radius);
}
int main () {
   cout << "Area of a circle with radius 7 unit is: " << area(7);
}




Cpp

Related
log base e synthax c++ Code Example log base e synthax c++ Code Example
delete file cpp Code Example delete file cpp Code Example
c++ static method call Code Example c++ static method call Code Example
comment in c++ Code Example comment in c++ Code Example
Using find in Vector c++ Code Example Using find in Vector c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10