Advertisement
Spocoman

02. Radians to Degrees

Aug 31st, 2023 (edited)
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int main() {
  6.     double radians;
  7.     cin >> radians;
  8.  
  9.     double degrees = radians * 180 / 3.14;
  10.  
  11.     cout << round(degrees) << endl;
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement