fork download
  1. #include <iostream>
  2. #include<cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. float R,O,P;
  7. cout<<"Unesite poluprečnik kruga: "<<endl;
  8. cin>>R;
  9. O=2*R*3.14;
  10. P=pow(R,2)*3.14;
  11.  
  12. cout<<"O= "<<O<<endl;
  13. cout<<"P= "<<P<<endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 5284KB
stdin
5
stdout
Unesite poluprečnik kruga: 
O= 31.4
P= 78.5