Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- double pi = 3.14;
- double radius;
- cout << "What is the radius?:";
- cin >> radius;
- double total = pi * radius * radius;
- double total2 = 2 * pi * radius;
- double total3 = (4/3) * pi * radius * radius * radius;
- double total4 = 4 * pi * radius * radius;
- cout << "Area of circle=" << total <<
- cout << "Circumference of circle=" << total2 <<
- cout << "Volume of sphere=" << total3 <<
- cout << "Surface area of sphere=" << total4 <<
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement