I'm creating a roller coaster program. I need to find a way to get the squareroot of a given number. Does anybody know?
I'm creating a roller coaster program. I need to find a way to get the squareroot of a given number. Does anybody know?
"If you tell the truth, you don't have to remember anything"
-Mark Twain
sqrt()
Use the sqrt(); function in math.h this will take a number and return its square root.
#include <math.h>
double root;
root = sqrt(16); // this will give you the square root of 16