i get no errors whatsoever but the output is only 0's, whats wrong with this?Code:#include <stdio.h> #include <math.h> main() { double x; x =45.0; /* 45 degree */ x *= 3.141593 /180.0; /* convert to radians*/ printf("The sine of 45 is: %f.\n", sin); printf("The cosine of 45 is: %f.\n", cos); printf("The tangent of 45 is: %f.\n", tan); return 0; }



LinkBack URL
About LinkBacks


