Code Snippets C

#include
#include
#define PI 3.14159265
int main ()
{
double j, result;
j = 45;
result = cos ( j * PI / 180);
printf ("Cosine of %lf degrees is %lf\n", j, result );
return 0;
}