fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. #define PI 3.14159265358979323846264338327950288419716939937510
  5.  
  6. int main() {
  7. cout<<cos(360 * PI / 180)<<" "<<cos(0 * PI / 180)<<endl;
  8. cout<<cos(365 * PI / 180)<<" "<<cos(5 * PI / 180)<<endl;
  9. cout<<cos(-5 * PI / 180)<<" "<<cos(355 * PI / 180)<<endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4560KB
stdin
Standard input is empty
stdout
1 1
0.996195 0.996195
0.996195 0.996195