Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _USE_MATH_DEFINES
- #include <math.h>
- #include <iostream>
- using namespace std;
- void main()
- {
- double x, y;
- cout << "enter x: ";
- cin >> x;
- y = sin(M_PI / x);
- cout << "y = " << y << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement