Want this question answered?
Be notified when an answer is posted
Chat with our AI personalities
minute_deg = minute * 360 / 60 = minute * 6;The hour hand will make a complete revolution every hour, so its formula is:hour_deg = hour * 360 / 12 = hour * 30;A function to find the angle would be:int angleBetweenHands(int hour, int minute){if(hour > 12) // In case of 24 hour clockhour -= 12;int angle = hour * 30 - minute * 6;if(angle > 180)angle = 360 - angle;return(angle);}Read more: C_code_to_find_angle_between_hour_hand_and_minute_hand
Yes, I can.It is the angle between the hour hand and 12 when the time is 4:20Yes, I can.It is the angle between the hour hand and 12 when the time is 4:20Yes, I can.It is the angle between the hour hand and 12 when the time is 4:20Yes, I can.It is the angle between the hour hand and 12 when the time is 4:20
Lets start by thinking of a clock as a circle, with directly up being 0 degrees. At 12:00, both hands are at 0 pointing straight up. Every 60 minutes, the minute hand will make a complete revolution, so at any given time its angle is: minute_deg = minute * 360 / 60 = minute * 6; The hour hand will make a complete revolution every hour, so its formula is: hour_deg = hour * 360 / 12 = hour * 30; A function to find the angle would be: int angleBetweenHands(int hour, int minute) { if(hour > 12) // In case of 24 hour clock hour -= 12; int angle = hour * 30 - minute * 6; if(angle > 180) angle = 360 - angle; return(angle); }
Assuming the hour hand moves steadily for the entirety of the hour, the angle formed by the hour and minute hand would be 55 degrees.
straight angle