Advertisement
DidiMilikina

10. Radians to Degrees

Sep 18th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     double radians;
  8.     cin >> radians;
  9.  
  10.     double pi = 3.1415;
  11.     double celsius = radians * (180 / pi);
  12.  
  13.     cout << fixed << setprecision(0) << celsius << endl;
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement