Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #define M_PI 3.14159265358979323846
- using namespace std;
- int main()
- {
- float radius;
- cin >> radius;
- float per = 2 * M_PI * radius;
- float area = M_PI * radius * radius;
- printf("%.13f\n%.13f\n", area, per);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement