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

Function area

Lab_06/Source.cpp:68–76  ·  view source on GitHub ↗

Overloading functions for the Finding AREA/////

Source from the content-addressed store, hash-verified

66
67/////Overloading functions for the Finding AREA/////
68double area(double radius)
69{ // overloading function for finding the area of circle
70 double area1;
71 double input_radius;
72 area1 = 3.141592653589793238463 * pow(radius, 2);
73 cout << "The area of Circle: " << area1 << endl;
74 cout << endl;
75 return area1;
76}
77
78double area(double sideA, double sideB)
79{ // overloading function for finding the area of rectengle

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected