Logic to find angle in clock in computer language
Answers
Answered by
0
Calculate the angle between hour hand and minute hand
This problem is know as Clock angle problem where we need to find angle between hands of an analog clock at a given time.
Examples:
Input: h = 12:00, m = 30.00
Output: 165 degree
Input: h = 3.00, m = 30.00
Output: 75 degree
This problem is know as Clock angle problem where we need to find angle between hands of an analog clock at a given time.
Examples:
Input: h = 12:00, m = 30.00
Output: 165 degree
Input: h = 3.00, m = 30.00
Output: 75 degree
Similar questions