Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { const double PI = 3.141592653589793; cout << cos(3) << "\n"; cout << cos(-3) << "\n"; cout << cos(0) << "\n"; cout << cos(PI) << "\n"; cout << cos(PI / 2.0) << "\n"; return 0; }
-0.989992
-0.989992
1
-1
6.12323e-17