Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
int main() { const double PI = 3.141592653589793; printf("%f\n", cos(3)); printf("%f\n", cos(-3)); printf("%f\n", cos(0)); printf("%f\n", cos(PI)); printf("%f\n", cos(PI / 2.0)); return 0; }
-0.989992
-0.989992
1.000000
-1.000000
0.000000