### Formula

V

volume of barrel

r1

middle radius

r2

top or bottom radius

h

height of the barrel

V

volume of barrel

r1

middle radius

r2

top or bottom radius

h

height of the barrel

A barrel or cask is a hollow cylindrical container.

r1

r2

h

V

Precision

- C
- C#
- C++
- Java
- JavaScript
- LaTeX
- PHP