fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. // Function to calculate the Circle Area Along the Circumference
  5. double CircleAreaAlongtheCircumferenceFunction(int Circumference, double Pi) {
  6. return (Circumference * Circumference) / (4 * Pi);
  7. }
  8.  
  9. int main() {
  10. double Area;
  11. int Circumference = 20;
  12. double Pi = 3.14;
  13.  
  14. Area = CircleAreaAlongtheCircumferenceFunction(Circumference, Pi);
  15.  
  16. std::cout << "The Circle Area Along the circumference is : " << Area << std::endl;
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
The Circle Area Along the circumference is : 31.8471