Advertisement
Tolyamba

Untitled

Jun 15th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <iostream>
  3. #include <stdio.h>
  4. #include <fstream>
  5. #include <cmath>
  6. #include <iomanip>
  7.  
  8. using namespace std;
  9.  
  10. int main()
  11. {
  12.     long double x, y;
  13.     ifstream file_in("angle1.in");
  14.     file_in >> x >> y;
  15.     file_in.close();
  16.        
  17.     long double ang = 0;
  18.     ang = atan2(y, x);
  19.        
  20.     ofstream file_out("angle1.out");
  21.     file_out << setprecision(15) << ang;
  22.     file_out.close();
  23.  
  24.     //system("pause");
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement