Advertisement
nisvet_m

Untitled

Dec 1st, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6.  
  7. double obim = 0, povrsina = 0, r = 0, pi = 3.14;
  8.  
  9. cout << "Unesi povrsinu: ";
  10. cin >> povrsina;
  11.  
  12. r = sqrt(pi / povrsina);
  13. cout << "Poluprecnik iznosi: " << r << endl;
  14.  
  15. obim = 2 * r * pi;
  16. cout << "Obim iznosi: " << obim << endl;
  17.  
  18. system("pause>0");
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement