Find the volume of a cylinder that has a diameter of 6 and a height of 9. Leave your answer in terms of (pie)

For this case we have that by definition, the volume of a cylinder is given in the following way:
[tex]V = \pi * r ^ 2 * h[/tex]
Where:
V: Represents the volume
r: Represents the radius of each of the circular caps of the cylinder
h: Represents the height of the cylinder
IF the diameter is 6, then:[tex]r = \frac {6} {2} = 3[/tex]
Then, according to the given data we have:
[tex]r = 3\\h = 9[/tex]
Substituting:
[tex]V = \pi * (3) ^ 2 * 9\\V = \pi * 9 * 9\\V = 81 \pi[/tex]
So, the volume of the cylinder is[tex]81 \pi[/tex]
Answer:
The volume of the cylinder is [tex]81 \pi[/tex] cubic units