Overloading functions for the Finding AREA/////
| 66 | |
| 67 | /////Overloading functions for the Finding AREA///// |
| 68 | double 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 | |
| 78 | double area(double sideA, double sideB) |
| 79 | { // overloading function for finding the area of rectengle |