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.14 * radius * radius;
  9. cout << "Area of the circle is: " << area << endl;
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
Enter the radius of the circle: Area of the circle is: 0