fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. float radius;
  6. cout << "Enter the radius of the circle: ";
  7. cin >> radius;
  8. float area = 3.14159 * radius * radius;
  9. cout << "The area of the circle is: " << area << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5296KB
stdin
Standard input is empty
stdout
Enter the radius of the circle: The area of the circle is: 0