Guest User

Untitled

a guest
Oct 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. #define PI 3.14159265
  4. using namespace std;
  5.  
  6. int main(int argc, char** argv) {
  7. double degree, result;
  8. cout << "Digite o valor em graus: ";
  9. cin >> degree;
  10. result = sin((degree*PI)/180);
  11. cout << "The sine of " << degree << " is: " << result;
  12. return 0;
  13. }
Add Comment
Please, Sign In to add comment