Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int h=0;
- int r=0;
- int v=0;
- int cylinderVolume=0;
- int cylinderSurfaceArea=0;
- void calc_vol(int);
- int main()
- {
- printf("enter cylinder height\n");
- scanf("%d", &h);
- printf("enter cylinder raduis\n");
- scanf("%d", &r);
- double cylinderVolume = 3.14159*r*r*h;
- printf ("the volume is %d ", cylinderVolume);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement