Advertisement
RicoHeartless

Semkiv 3.2

Mar 22nd, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #define _USE_MATH_DEFINES
  2. #include <math.h>
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. void main()
  8. {
  9.     double x, y;
  10.     cout << "enter x: ";
  11.     cin >> x;
  12.     y = sin(M_PI / x);
  13.     cout << "y = " << y << endl;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement