Challenge

Use the math library! Add code to main.c that displays the sine of 1 radian. Show the number rounded to three decimal points. It should be 0.841. The sine function is declared like this:

d​o​u​b​l​e​ ​s​i​n​(​d​o​u​b​l​e​ ​x​)​;​

Get Objective-C Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.