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

Function main1

Lab_05/Source.cpp:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14} // end function "area"
15
16int main1()
17{
18 float radius;
19 cout << "Please enter the radius of circle: ";
20 cin >> radius; // inputing the radius
21
22 if (radius > 0)
23 cout << area(radius) << endl; // calling the function "area" for calculating the Area of Circle
24
25 else
26 cout << "INVALID Radius!" << endl; // if radius is a negative number or equal to zero the program will show "Invalid radius"
27 system("pause");
28 return 0;
29}

Callers

nothing calls this directly

Calls 1

areaFunction · 0.70

Tested by

no test coverage detected