What did i do wrong here?
I am using GNU emacs to compile
Code:#include <math.h> #include <stdio.h> int main () { double time; /* declare time as a power */; double g; /* declare g as a decimal */; double pi; /* declare pi as a decmal */; double length; /* declare length as a double value */ time = 60; g = (32.260); pi = (3.1416); length = g * (time/pi); printf ("time/pi raised to the 2nd power is %f\n", pow(time/pi, 2)); printf("\nThe length to complete one swing in one second is: %f, inches"); return 0; }