Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #define PI 3.14159265
- using namespace std;
- int main(int argc, char** argv) {
- double degree, result;
- cout << "Digite o valor em graus: ";
- cin >> degree;
- result = sin((degree*PI)/180);
- cout << "The sine of " << degree << " is: " << result;
- return 0;
- }
Add Comment
Please, Sign In to add comment