Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <iomanip>
- #define PI 3.14159265
- using namespace std;
- int main()
- {
- int x;
- cin>>x;
- double s=(int)(sin(x*PI/180)*1000),c=(int)(cos(x*PI/180)*1000);
- cout<<fixed<<setprecision(3)<<s/1000<<' '<<c/1000;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement