Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float r;
- float obwod(float r)
- {
- return 2 * r * 3.14;
- }
- float pole(float r)
- {
- return r * r * 3.14;
- }
- main()
- {
- cout << "Podaj promien kola: ";
- cin >> r;
- cout << "obwod tego kola wynosi: " << obwod(r) << endl;
- cout << "pole tego kola wynosi: " << pole(r) << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement