Answers for "volumeof a sphere"

C++
12

volumeof a sphere

#define _USE_MATH_DEFINES // must include this!
#include <cmath>

return 4/3 * M_PI * r*r*r;
Posted by: Guest on March-13-2022

Browse Popular Code Answers by Language