View Single Post
Old 09-22-2006, 03:49 PM   #4 (permalink)
jaeusm
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

My suggestion still works for C. Try this:

Code:
#include <math.h>
#include <stdio.h>

int main(){
    int x = 8;
    double y = -1;

    y = pow(x, 1.0/3);
    printf("%f", y);
    
    return 0;
}

jaeusm is offline