def volume(radius): return (4/3) * math.pi * (radius ** 3) # (4/3)πr^3
(4/3)πr^3
#define _USE_MATH_DEFINES // must include this! #include <cmath> return 4/3 * M_PI * r*r*r;