Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<iomanip>
- using namespace std;
- int main()
- {
- int h,m;
- cin>>h>>m;
- double angle;
- angle = (360-(h*30)+((m/5.0)*30)-(m*30)/60.0);
- cout<<fixed<<setprecision(7)<<angle<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement