Logo  

CS471/571 - Operating Systems

Displaying exercises/e7/solution/math.c

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

// Ouputs the expected result that dl should output.
// Compile with gcc -o math math.c -lm

int main(void)
{
  printf("sin(cos(pi)) = %lf\n", sin(cos(M_PI)));
  return 0;
}