Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main() {
- double radius;
- printf("Enter radius value: ");
- scanf("%lf", &radius);
- double circumference = 2 * M_PI * radius;
- double surface = 2 * circumference * radius;
- double volume = surface * radius / 3;
- printf("circumference: %lf\nsurface: %lf\nvolume: %lf\n",
- perimeter, surface, volume);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement