You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Takes a radius as input and calculates a sphere's area, surface area, and volume.
What I learned
math.h functions like pow() may need the math library linked at compile time with -lm, or the compiler reports an "undefined reference" error on some systems. I also learned math.h provides an M_PI constant that's more precise than defining PI by hand.