Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void) {
- double h = 0;
- double r1 = 0;
- double r2 = 0;
- const double pi = 3.1415;
- scanf("%lf %lf %lf", &h, &r1, &r2);
- double V = pi * h * (r1*r1 - r2*r2);
- double S = 0;
- double S1 = 0;
- printf("V = %lf\n", V);
- printf("S = %lf\n", S);
- printf("S1 = %lf\n", S1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement