Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- double radius;
- cin >> radius;
- double area = 3.14159265359 * radius * radius;
- double perimeter = 2 * 3.14159265359 * radius;
- cout.setf(ios::fixed);
- cout.precision(2);
- cout << area << endl;
- cout << perimeter << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement