Table Of Contents
Previous Section Next Section

Program 64: π in Your Eye

The file math.h defines the constant M_PI. What do we get when we print this constant?

  1 /************************************************
  2  * PI -- Test program to see verify that        *
  3  *      the value  of "pi" in math.h is         *
  4  *      correct.                                *
  5  ************************************************/
  6 /* math.h defines M_PI */
  7 #include <math.h>
  8 #include <stdio.h>
  9
 10 int main()
 11 {
 12     printf("pi is %d\n", M_PI);
 13     return (0);
 14 }

(Next Hint 198. Answer 10.)

Table Of Contents
Previous Section Next Section