fork download
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std
  4.  
  5. int main()
  6. {
  7. float radius;
  8. float circumference;
  9. float area;
  10.  
  11. cout << "Please enter the radius of the circle: ";
  12. cin >> radius;
  13. cout << endl;
  14.  
  15. circumference = 2 * 3.1416 * radius;
  16. area = 3.1416 * radius * radius;
  17.  
  18. cout << "Radius = " << radius << endl;
  19. cout << "Area = " << area << endl;
  20. cout << "circumference = " << circumference << endl;
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:1: error: expected ‘;’ before ‘int’
 int main()
 ^
stdout
Standard output is empty