Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int length, width, height;
- double percent, result, volume;
- scanf("%d %d %d %lf", &length, &width, &height, &percent);
- volume = length * width * height * 0.001;
- result = volume * (1 - percent * 0.01);
- printf("%.3f", result);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement