Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #define M_PI 3.1415926535897932384626433832795
- #include <iostream>
- #include <stdio.h>
- #include <fstream>
- #include <cmath>
- #include <iomanip>
- using namespace std;
- int main()
- {
- long double x, y;
- ifstream file_in("angle1.in");
- file_in >> x >> y;
- file_in.close();
- long double ang = 0;
- ang = atan2(y, x);
- ofstream file_out("angle1.out");
- file_out << setprecision(15) << ang + M_PI;
- file_out.close();
- //system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement