MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / area

Function area

Lab_05/Source.cpp:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace std;
8
9float area(float radius)
10{ // function for calculating the area
11 float area;
12 area = (atan(1) * 4) * (pow(radius, 2)); //"atan" is the function which is finding the PI=3.14
13 return area;
14} // end function "area"
15
16int main1()
17{

Callers 1

main1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected