Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- cout << "Enter circle radius. r = ";
- double r;
- cin >> r;
- double pi = 3.14159265359;
- cout << "Area = " << pi * r * r << endl;
- cout << "Perimeter = " << 2 * pi * r << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement