"Clock face - 1: H hours, M minutes and S seconds are passed since the midnight (0 ≤ H < 12, 0 ≤ M < 60, 0 ≤ S < 60). Determine the angle (in degrees) of the hour hand on the clock face right now. " - Python coding question

 

 


 

CODING QUESTION

H hours, M minutes and S seconds are passed since the midnight (0 ≤ H < 12, 0 ≤ M < 60, 0 ≤ S < 60). Determine the angle (in degrees) of the hour hand on the clock face right now. 

 

SOLUTION

h=float(input())
m=float(input())
s=float(input())
digree=h*30
digree=digree+(m*(30/60))
digree=digree+(s*(30/3600))
print(digree)

 

Input : 

1

2

6

Output : 

31.05