Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- double obim = 0, povrsina = 0, r = 0, pi = 3.14;
- cout << "Unesi povrsinu: ";
- cin >> povrsina;
- r = sqrt(pi / povrsina);
- cout << "Poluprecnik iznosi: " << r << endl;
- obim = 2 * r * pi;
- cout << "Obim iznosi: " << obim << endl;
- system("pause>0");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement