Let’s say we have a pizza. It has a radius of z and it has a height of a. That would mean it has a volume of

pi * z * z * a.

Thank you reddit. (And yeah, my computer science background makes me define this as a formula, not an algorithm.)

Damn, I’m hungry.