iamantony / CppNotes

My notes about C++
MIT License
1 stars 3 forks source link

Task: given a time, calculate the angle between the hour and munute hands #7

Closed iamantony closed 8 years ago

iamantony commented 8 years ago

Example: 3:27

Angle between minute hand and 12 o'clock: 360 * m / 60 Angle between hour hand and 12 o'clock: (360 * (h % 12) / 12) + 360 * (m / 60) * (1 / 12)

iamantony commented 8 years ago

Done: 42feaec9c7f036ddfe64d38c4de40fabd34226d9