I need help with my C Program I am stuck

I went to an ivy league school and they said the same thing all the time… Really annoying lol. especially when you’re paying out the wazoo for classes.


First, PI is already defined in math.h, its under M_PI (it should be in most compilers)

It’s really easy to convert degrees to radians, for example for degs to rads is ‘degpi/180’ and rads to degs is 'rad180/pi’


// Convert a degree to a radian
#define degToRad(angleDeg) (angleDeg * M_PI / 180)
 
// Convert a radian to a degree
#define radToDeg(angleRad) (angleRad * 180 / M_PI)